| ... | @@ -8,10 +8,12 @@ |
... | @@ -8,10 +8,12 @@ |
|
|
- else
|
|
- else
|
|
|
%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
|
|
|
= link_to "", "#", :class => "line_note_link", "line_code" => line_code, :title => "Add note for this line"
|
|
= link_to "", "#", :class => "line_note_link", "line_code" => line_code, :title => "Add note for this line"
|
|
|
%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} "
|
|
|
|
|
|
|
|
|
- if @comments_allowed
|
|
|
- comments = @line_notes.select { |n| n.line_code == line_code }.sort_by(&:created_at).reverse
|
|
- comments = @line_notes.select { |n| n.line_code == line_code }.sort_by(&:created_at).reverse
|
|
|
- unless comments.empty?
|
|
- unless comments.empty?
|
|
|
- comments.each do |note|
|
|
- comments.each do |note|
|
| ... | |
... | |
| ... | | ... | |