Inline diff_notes_reply_button partial
This commit is contained in:
parent
3bc507e5c5
commit
6d5c29dc2b
3 changed files with 14 additions and 13 deletions
|
@ -1,3 +1,15 @@
|
|||
- notes.each do |note|
|
||||
= render "notes/diff_note", note: note
|
||||
= render "notes/diff_notes_reply_button", note: notes.first
|
||||
|
||||
-# reply button
|
||||
- note = notes.first # example note
|
||||
%tr.line_notes_row.reply
|
||||
%td{colspan: 3}
|
||||
= link_to "javascript:;",
|
||||
class: "line_note_reply_link js-note-add-to-diff-line",
|
||||
data: { line_code: note.line_code,
|
||||
noteable_type: note.noteable_type,
|
||||
noteable_id: note.noteable_id },
|
||||
title: "Add a comment to this line" do
|
||||
%i.icon-comment
|
||||
Reply
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue