Commit f0bdf5c6 authored by Alfredo Sumaran's avatar Alfredo Sumaran

Hide whitespace toggle button for new merge requests

parent d8d00b5b
- show_whitespace_toggle = local_assigns.fetch :show_whitespace_toggle, true
- if diff_view == 'parallel'
- fluid_layout true
......@@ -5,6 +6,7 @@
.content-block.oneline-block.files-changed
.inline-parallel-buttons
- if show_whitespace_toggle
- if current_controller?(:commit)
= commit_diff_whitespace_link(@project, @commit)
- if current_controller?(:merge_requests)
......
......@@ -42,7 +42,7 @@
%h4 This comparison includes more than #{MergeRequestDiff::COMMITS_SAFE_SIZE} commits.
%p To preserve performance the line changes are not shown.
- else
= render "projects/diffs/diffs", diffs: @diffs, project: @project, diff_refs: @merge_request.diff_refs
= render "projects/diffs/diffs", diffs: @diffs, project: @project, diff_refs: @merge_request.diff_refs, show_whitespace_toggle: false
- if @ci_commit
#builds.builds.tab-pane
= render "projects/merge_requests/show/builds"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment