diff options
author | Marin Jankovski <marin@gitlab.com> | 2014-09-09 11:10:40 +0200 |
---|---|---|
committer | Marin Jankovski <marin@gitlab.com> | 2014-09-09 11:10:40 +0200 |
commit | 9c3935c5b0b6feddf91fd2170b50e5910b2cc932 (patch) | |
tree | 8ff26258d1a4c589909428abb954b1cd4013095d /app/helpers/diff_helper.rb | |
parent | be4359efba514095cda25c225495b55f92a01f45 (diff) | |
download | gitlab-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.rb | 11 |
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? + " " + else + line + end + end end |