summaryrefslogtreecommitdiff
path: root/app/views/projects/commits
diff options
context:
space:
mode:
authorYuriy Glukhov <yglukhov@users.noreply.github.com>2014-08-13 14:04:13 +0300
committeruran <uran@zeoalliance.com>2014-08-27 11:21:58 +0300
commit0bf45aece390a474ae01feb7d237878cb9e37c04 (patch)
tree58c85081e5bd1d53a45a5248d8ebb90948242f43 /app/views/projects/commits
parent070e3964dcf5e61a97618913af75fdc878f71871 (diff)
downloadgitlab-ce-0bf45aece390a474ae01feb7d237878cb9e37c04.tar.gz
Added a checkbox to toggle line wrapping in diff.
Diffstat (limited to 'app/views/projects/commits')
-rw-r--r--app/views/projects/commits/_diff_file.html.haml4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/views/projects/commits/_diff_file.html.haml b/app/views/projects/commits/_diff_file.html.haml
index 6e6107c8849..31208a227ce 100644
--- a/app/views/projects/commits/_diff_file.html.haml
+++ b/app/views/projects/commits/_diff_file.html.haml
@@ -16,6 +16,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
+ &nbsp;
= link_to "#", class: "js-toggle-diff-comments btn btn-small" do
%i.icon-chevron-down
Diff comments