diff options
author | Douwe Maan <douwe@selenight.nl> | 2016-01-20 14:59:14 +0100 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2016-01-20 14:59:14 +0100 |
commit | 88bd13851300b98c9d0290cfac5ad1f14673b34d (patch) | |
tree | b6f2a1b3ce9175becaa2b0eb86ac00f6afa59cb7 /app/helpers | |
parent | c23ca0b0b5640d9cbf3fbfd446916a228b581b2f (diff) | |
download | gitlab-ce-88bd13851300b98c9d0290cfac5ad1f14673b34d.tar.gz |
Restore helper
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/diff_helper.rb | 4 |
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 |