diff options
-rw-r--r-- | app/views/projects/diffs/_file.html.haml | 7 | ||||
-rw-r--r-- | app/views/projects/diffs/_parallel_view.html.haml | 2 |
2 files changed, 5 insertions, 4 deletions
diff --git a/app/views/projects/diffs/_file.html.haml b/app/views/projects/diffs/_file.html.haml index be0301e75f8..f2a8d148cc6 100644 --- a/app/views/projects/diffs/_file.html.haml +++ b/app/views/projects/diffs/_file.html.haml @@ -15,9 +15,10 @@ %span.file-mode= "#{diff.a_mode} → #{diff.b_mode}" .diff-btn-group - %label - = check_box_tag nil, 1, false, class: "js-toggle-diff-line-wrap" - Wrap text + - unless params[:view] == 'parallel' + %label + = check_box_tag nil, 1, false, class: "js-toggle-diff-line-wrap" + Wrap text = link_to "#", class: "js-toggle-diff-comments btn btn-small" do %i.icon-chevron-down diff --git a/app/views/projects/diffs/_parallel_view.html.haml b/app/views/projects/diffs/_parallel_view.html.haml index 47fe77ccf75..3ec769e0b83 100644 --- a/app/views/projects/diffs/_parallel_view.html.haml +++ b/app/views/projects/diffs/_parallel_view.html.haml @@ -1,5 +1,5 @@ / Side-by-side diff view -%div.text-file +%div.text-file.diff-wrap-lines %table - parallel_diff(diff_file, index).each do |line| - type_left = line[0] |