Commit a3dbd990682f5f39d9c3e58858faf85b9b0a6179

Authored by Riyad Preukschas
1 parent c6d71b7b

Extract 'notes/per_line_note_link' partial

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  
... ...
app/views/notes/_per_line_note_link.html.haml 0 → 100644
... ... @@ -0,0 +1 @@
  1 += link_to "", "#", class: "line_note_link", data: { line_code: line_code }, title: "Add note for this line"
... ...