From 2cd5aa694de52536f2f7e42d84c3688c9de2fee8 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Sun, 22 Jan 2012 13:13:15 +0200 Subject: fixed ... in diff file first line --- app/views/commits/_text_file.html.haml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'app/views/commits/_text_file.html.haml') diff --git a/app/views/commits/_text_file.html.haml b/app/views/commits/_text_file.html.haml index 1456257ce3d..513efdf02d9 100644 --- a/app/views/commits/_text_file.html.haml +++ b/app/views/commits/_text_file.html.haml @@ -8,12 +8,14 @@ - next if line.match(/^--- a/) - next if line.match(/^\+\+\+ b/) - if line.match(/^@@ -/) + - unless line_old.zero? && line_new.zero? + %tr.line_holder + %td.old_line= "..." + %td.new_line= "..." + %td.line_content   + - line_old = line.match(/\-[0-9]*/)[0].to_i.abs rescue 0 - line_new = line.match(/\+[0-9]*/)[0].to_i.abs rescue 0 - %tr.line_holder - %td.old_line= "..." - %td.new_line= "..." - %td.line_content   - next - full_line = html_escape(line.gsub(/\n/, '')) -- cgit v1.2.3