Only show text wrap and diff notes for text in MR.

This commit is contained in:
Ciro Santilli 2014-09-29 14:48:05 +02:00
parent 376e004c16
commit da4eff4add
1 changed files with 10 additions and 9 deletions

View File

@ -15,12 +15,13 @@
%span.file-mode= "#{diff_file.diff.a_mode} → #{diff_file.diff.b_mode}"
.diff-btn-group
- if blob.text?
- unless params[:view] == 'parallel'
%label
= check_box_tag nil, 1, false, class: "js-toggle-diff-line-wrap"
= 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
= link_to '#', class: 'js-toggle-diff-comments btn btn-small' do
%i.icon-chevron-down
Diff comments