summaryrefslogtreecommitdiff
path: root/app/helpers
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2016-01-20 14:59:14 +0100
committerDouwe Maan <douwe@selenight.nl>2016-01-20 14:59:14 +0100
commit88bd13851300b98c9d0290cfac5ad1f14673b34d (patch)
treeb6f2a1b3ce9175becaa2b0eb86ac00f6afa59cb7 /app/helpers
parentc23ca0b0b5640d9cbf3fbfd446916a228b581b2f (diff)
downloadgitlab-ce-88bd13851300b98c9d0290cfac5ad1f14673b34d.tar.gz
Restore helper
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 e524f6da9c8..f500d3572e0 100644
--- a/app/helpers/diff_helper.rb
+++ b/app/helpers/diff_helper.rb
@@ -39,6 +39,10 @@ module DiffHelper
end
end
+ def generate_line_code(file_path, line)
+ Gitlab::Diff::LineCode.generate(file_path, line.new_pos, line.old_pos)
+ end
+
def unfold_bottom_class(bottom)
(bottom) ? 'js-unfold-bottom' : ''
end