Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-01-22 15:13:15 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-01-22 15:13:15 +0400
commit2cd5aa694de52536f2f7e42d84c3688c9de2fee8 (patch)
treea306be097b8869d0f9a9868654782404f0eacfb9 /app/views/commits/_text_file.html.haml
parent8db72a2844deb6fb95350610b45b2bad50a6a7e2 (diff)
fixed ... in diff file first line
Diffstat (limited to 'app/views/commits/_text_file.html.haml')
-rw-r--r--app/views/commits/_text_file.html.haml10
1 files changed, 6 insertions, 4 deletions
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 &nbsp;
+
- 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 &nbsp;
- next
- full_line = html_escape(line.gsub(/\n/, ''))