gitlab-org--gitlab-foss/app/views/notes/_diff_note_link.html.haml

10 lines
430 B
Plaintext
Raw Normal View History

2012-11-20 16:46:55 +00:00
- note = @project.notes.new(@comments_target.merge({ line_code: line_code }))
= link_to "",
2012-11-20 16:46:55 +00:00
"javascript:;",
class: "add-diff-note js-add-diff-note-button",
data: { noteable_type: note.noteable_type,
noteable_id: note.noteable_id,
line_code: note.line_code,
discussion_id: note.discussion_id },
title: "Add a comment to this line"