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:
authorAlex Connor <alex@gconnor.com>2015-02-09 02:12:44 +0300
committerJeroen van Baarsen <jeroenvanbaarsen@gmail.com>2015-05-21 10:25:07 +0300
commit3c892f3554dd0a7d03c1961a7e4504f03a17c3b5 (patch)
treeed2332de9293a21e0cfb561dd1ec1c5464eda666 /app/views/projects/blob/diff.html.haml
parent7758a566c9d12dbb7728ad6273cafe140a9e8eb8 (diff)
Disabled expansion of top/bottom blobs for new file diffs
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 5c79d0ef11f..84742608986 100644
--- a/app/views/projects/blob/diff.html.haml
+++ b/app/views/projects/blob/diff.html.haml
@@ -2,7 +2,7 @@
- if @form.unfold? && @form.since != 1 && !@form.bottom?
%tr.line_holder{ id: @form.since }
= render "projects/diffs/match_line", {line: @match_line,
- line_old: @form.since, line_new: @form.since, bottom: false}
+ line_old: @form.since, line_new: @form.since, bottom: false, new_file: false}
- @lines.each_with_index do |line, index|
- line_new = index + @form.since
@@ -16,4 +16,4 @@
- if @form.unfold? && @form.bottom? && @form.to < @blob.loc
%tr.line_holder{ id: @form.to }
= render "projects/diffs/match_line", {line: @match_line,
- line_old: @form.to, line_new: @form.to, bottom: true}
+ line_old: @form.to, line_new: @form.to, bottom: true, new_file: false}