Extract 'notes/per_line_note_link' partial
This commit is contained in:
parent
c6d71b7b8e
commit
a3dbd99068
2 changed files with 2 additions and 1 deletions
|
@ -13,7 +13,7 @@
|
|||
%td.old_line
|
||||
= link_to raw(type == "new" ? " " : line_old), "##{line_code}", id: line_code
|
||||
- if @comments_allowed
|
||||
= link_to "", "#", class: "line_note_link", data: { line_code: line_code }, title: "Add note for this line"
|
||||
= render "notes/per_line_note_link", line_code: line_code
|
||||
%td.new_line= link_to raw(type == "old" ? " " : line_new) , "##{line_code}", id: line_code
|
||||
%td.line_content{class: "noteable_line #{type} #{line_code}", "line_code" => line_code}= raw "#{line} "
|
||||
|
||||
|
|
1
app/views/notes/_per_line_note_link.html.haml
Normal file
1
app/views/notes/_per_line_note_link.html.haml
Normal file
|
@ -0,0 +1 @@
|
|||
= link_to "", "#", class: "line_note_link", data: { line_code: line_code }, title: "Add note for this line"
|
Loading…
Reference in a new issue