Commit d4d723ca authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge pull request #7616 from yglukhov/fix-parallel-diff-on-new-mr

Fixed parralel diff button on 'merge_requests/new' page
parents c4a8663b f44a68a0
...@@ -4,9 +4,12 @@ ...@@ -4,9 +4,12 @@
.col-md-4 .col-md-4
%ul.nav.nav-tabs %ul.nav.nav-tabs
%li.pull-right{class: params[:view] == 'parallel' ? 'active' : ''} %li.pull-right{class: params[:view] == 'parallel' ? 'active' : ''}
= link_to "Side-by-side Diff", url_for(view: 'parallel'), {id: "commit-diff-viewtype"} - params_copy = params.dup
- params_copy[:view] = 'parallel'
= link_to "Side-by-side Diff", url_for(params_copy), {id: "commit-diff-viewtype"}
%li.pull-right{class: params[:view] != 'parallel' ? 'active' : ''} %li.pull-right{class: params[:view] != 'parallel' ? 'active' : ''}
= link_to "Inline Diff", url_for(view: 'inline'), {id: "commit-diff-viewtype"} - params_copy[:view] = 'inline'
= link_to "Inline Diff", url_for(params_copy), {id: "commit-diff-viewtype"}
- if show_diff_size_warninig?(diffs) - if show_diff_size_warninig?(diffs)
= render 'projects/commits/diff_warning', diffs: diffs = render 'projects/commits/diff_warning', diffs: diffs
......
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