diff options
author | Sean McGivern <sean@gitlab.com> | 2016-07-06 13:04:52 +0100 |
---|---|---|
committer | Sean McGivern <sean@gitlab.com> | 2016-07-08 13:53:17 +0100 |
commit | c082d92fb959ee2344b90b7fd4e316019452c094 (patch) | |
tree | bdfad8463d79f98167b86c4f25957041cb30d693 /app/helpers | |
parent | 90a6be190feea0966e9ed9b6731d930bcff32d68 (diff) | |
download | gitlab-ce-c082d92fb959ee2344b90b7fd4e316019452c094.tar.gz |
Allow expanding all diffs at once
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 93f12198a58..fd7b71407f3 100644 --- a/app/helpers/diff_helper.rb +++ b/app/helpers/diff_helper.rb @@ -8,6 +8,10 @@ module DiffHelper [marked_old_line, marked_new_line] end + def expand_all? + @expand_all || params[:expand].present? + end + def render_diff_for_path(diffs, diff_refs, project) diff_file = safe_diff_files(diffs, diff_refs).first |