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/helpers
parent7758a566c9d12dbb7728ad6273cafe140a9e8eb8 (diff)
Disabled expansion of top/bottom blobs for new file diffs
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/diff_helper.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/helpers/diff_helper.rb b/app/helpers/diff_helper.rb
index 1b10795bb7b..1bd3ec5e0e0 100644
--- a/app/helpers/diff_helper.rb
+++ b/app/helpers/diff_helper.rb
@@ -101,6 +101,10 @@ module DiffHelper
(bottom) ? 'js-unfold-bottom' : ''
end
+ def unfold_class(unfold)
+ (unfold) ? 'unfold js-unfold' : ''
+ end
+
def diff_line_content(line)
if line.blank?
" &nbsp;"