# HG changeset patch # User Daniel Dourvaris # Date 2016-10-25 14:54:35 # Node ID 739142a58f71509e327130cc116073f6b678ee6b # Parent 69363678a74aeb4c85e41bf794ab4d8f86e25cdf diffs: add ruler to diff output to show eg. 80 char line diff --git a/rhodecode/templates/codeblocks/diffs.html b/rhodecode/templates/codeblocks/diffs.html --- a/rhodecode/templates/codeblocks/diffs.html +++ b/rhodecode/templates/codeblocks/diffs.html @@ -30,6 +30,9 @@ return h.url('', **new_args) # collapse lines in the diff when more than this amount of lines changed in the file diff lines_changed_limit=500, + + # add a ruler at to the output + ruler_at_chars=0, )"> <% # TODO: dan: move this to an argument - and set a cookie so that it is saved @@ -48,7 +51,20 @@ collapse_all = len(diffset.files) > coll } %endif - +%if ruler_at_chars: + +%endif % if diffset.limited_diff:
${_('The requested commit is too big and content was truncated.')} ${_('Show full diff')}