Commit 2cd5aa694de52536f2f7e42d84c3688c9de2fee8
1 parent
8db72a28
Exists in
master
and in
4 other branches
fixed ... in diff file first line
Showing
1 changed file
with
6 additions
and
4 deletions
Show diff stats
app/views/commits/_text_file.html.haml
| ... | ... | @@ -8,12 +8,14 @@ |
| 8 | 8 | - next if line.match(/^--- a/) |
| 9 | 9 | - next if line.match(/^\+\+\+ b/) |
| 10 | 10 | - if line.match(/^@@ -/) |
| 11 | + - unless line_old.zero? && line_new.zero? | |
| 12 | + %tr.line_holder | |
| 13 | + %td.old_line= "..." | |
| 14 | + %td.new_line= "..." | |
| 15 | + %td.line_content | |
| 16 | + | |
| 11 | 17 | - line_old = line.match(/\-[0-9]*/)[0].to_i.abs rescue 0 |
| 12 | 18 | - line_new = line.match(/\+[0-9]*/)[0].to_i.abs rescue 0 |
| 13 | - %tr.line_holder | |
| 14 | - %td.old_line= "..." | |
| 15 | - %td.new_line= "..." | |
| 16 | - %td.line_content | |
| 17 | 19 | - next |
| 18 | 20 | |
| 19 | 21 | - full_line = html_escape(line.gsub(/\n/, '')) | ... | ... |