Commit a3dbd990 authored by Riyad Preukschas's avatar Riyad Preukschas

Extract 'notes/per_line_note_link' partial

parent c6d71b7b
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
%td.old_line %td.old_line
= link_to raw(type == "new" ? " " : line_old), "##{line_code}", id: line_code = link_to raw(type == "new" ? " " : line_old), "##{line_code}", id: line_code
- if @comments_allowed - 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.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}  " %td.line_content{class: "noteable_line #{type} #{line_code}", "line_code" => line_code}= raw "#{line}  "
......
= link_to "", "#", class: "line_note_link", data: { line_code: line_code }, title: "Add note for this line"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment