Commit a3dbd990682f5f39d9c3e58858faf85b9b0a6179
1 parent
c6d71b7b
Exists in
master
and in
4 other branches
Extract 'notes/per_line_note_link' partial
Showing
2 changed files
with
2 additions
and
1 deletions
Show diff stats
app/views/commits/_text_file.html.haml
... | ... | @@ -13,7 +13,7 @@ |
13 | 13 | %td.old_line |
14 | 14 | = link_to raw(type == "new" ? " " : line_old), "##{line_code}", id: line_code |
15 | 15 | - if @comments_allowed |
16 | - = link_to "", "#", class: "line_note_link", data: { line_code: line_code }, title: "Add note for this line" | |
16 | + = render "notes/per_line_note_link", line_code: line_code | |
17 | 17 | %td.new_line= link_to raw(type == "old" ? " " : line_new) , "##{line_code}", id: line_code |
18 | 18 | %td.line_content{class: "noteable_line #{type} #{line_code}", "line_code" => line_code}= raw "#{line} " |
19 | 19 | ... | ... |
... | ... | @@ -0,0 +1 @@ |
1 | += link_to "", "#", class: "line_note_link", data: { line_code: line_code }, title: "Add note for this line" | ... | ... |