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:
authorMarin Jankovski <marin@gitlab.com>2014-09-09 13:10:40 +0400
committerMarin Jankovski <marin@gitlab.com>2014-09-09 13:10:40 +0400
commit9c3935c5b0b6feddf91fd2170b50e5910b2cc932 (patch)
tree8ff26258d1a4c589909428abb954b1cd4013095d /app/views/projects/blob/diff.html.haml
parentbe4359efba514095cda25c225495b55f92a01f45 (diff)
Use the new path to the partial, move the diff related methods to the new helper.
Diffstat (limited to 'app/views/projects/blob/diff.html.haml')
-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}