summaryrefslogtreecommitdiff
path: root/app/views/projects/blob
diff options
context:
space:
mode:
authorMarin Jankovski <marin@gitlab.com>2014-09-09 11:10:40 +0200
committerMarin Jankovski <marin@gitlab.com>2014-09-09 11:10:40 +0200
commit9c3935c5b0b6feddf91fd2170b50e5910b2cc932 (patch)
tree8ff26258d1a4c589909428abb954b1cd4013095d /app/views/projects/blob
parentbe4359efba514095cda25c225495b55f92a01f45 (diff)
downloadgitlab-ce-9c3935c5b0b6feddf91fd2170b50e5910b2cc932.tar.gz
Use the new path to the partial, move the diff related methods to the new helper.
Diffstat (limited to 'app/views/projects/blob')
-rw-r--r--app/views/projects/blob/diff.html.haml4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/projects/blob/diff.html.haml b/app/views/projects/blob/diff.html.haml
index cfb91d6568a..5c79d0ef11f 100644
--- a/app/views/projects/blob/diff.html.haml
+++ b/app/views/projects/blob/diff.html.haml
@@ -1,7 +1,7 @@
- if @lines.present?
- if @form.unfold? && @form.since != 1 && !@form.bottom?
%tr.line_holder{ id: @form.since }
- = render "projects/commits/diffs/match_line", {line: @match_line,
+ = render "projects/diffs/match_line", {line: @match_line,
line_old: @form.since, line_new: @form.since, bottom: false}
- @lines.each_with_index do |line, index|
@@ -15,5 +15,5 @@
- if @form.unfold? && @form.bottom? && @form.to < @blob.loc
%tr.line_holder{ id: @form.to }
- = render "projects/commits/diffs/match_line", {line: @match_line,
+ = render "projects/diffs/match_line", {line: @match_line,
line_old: @form.to, line_new: @form.to, bottom: true}