summaryrefslogtreecommitdiff
path: root/app/helpers/diff_helper.rb
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/helpers/diff_helper.rb
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/helpers/diff_helper.rb')
-rw-r--r--app/helpers/diff_helper.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/app/helpers/diff_helper.rb b/app/helpers/diff_helper.rb
index 6307790d4e7..0f4d6cf4032 100644
--- a/app/helpers/diff_helper.rb
+++ b/app/helpers/diff_helper.rb
@@ -86,4 +86,15 @@ module DiffHelper
lines
end
+ def unfold_bottom_class(bottom)
+ (bottom) ? 'js-unfold-bottom' : ''
+ end
+
+ def diff_line_content(line)
+ if line.blank?
+ " &nbsp;"
+ else
+ line
+ end
+ end
end