Commit 120f032b authored by Hannes Rosenögger's avatar Hannes Rosenögger

enable line wrapping by default and remove the checkbox to change it

parent dbd347bf
Please view this file on the master branch, on stable branches it's out of date.
v 7.10.0 (unreleased)
- enable line wrapping per default and remove the checkbox to toggle it (Hannes Rosenögger)
- Add a service to support external wikis (Hannes Rosenögger)
v 7.9.0 (unreleased)
$ ->
# Toggle line wrapping in diff.
# %div.diff-file
# %input.js-toggle-diff-line-wrap
# %td.line_content
$("body").on "click", ".js-toggle-diff-line-wrap", (e) ->
diffFile = $(@).closest(".diff-file")
if $(@).is(":checked")
......@@ -22,11 +22,6 @@
- if blob.text?
- unless params[:view] == 'parallel'
= check_box_tag nil, 1, false, class: 'js-toggle-diff-line-wrap'
Wrap text
= link_to '#', class: 'js-toggle-diff-comments btn btn-sm' do
Show/Hide comments
......@@ -39,7 +34,7 @@
= view_file_btn(, diff_file, project)
-# Skipp all non non-supported blobs
- return unless blob.respond_to?('text?')
- if blob.text?
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment