Show More
@@ -30,6 +30,9 b" return h.url('', **new_args)" | |||||
30 |
|
30 | |||
31 | # collapse lines in the diff when more than this amount of lines changed in the file diff |
|
31 | # collapse lines in the diff when more than this amount of lines changed in the file diff | |
32 | lines_changed_limit=500, |
|
32 | lines_changed_limit=500, | |
|
33 | ||||
|
34 | # add a ruler at to the output | |||
|
35 | ruler_at_chars=0, | |||
33 | )"> |
|
36 | )"> | |
34 | <% |
|
37 | <% | |
35 | # TODO: dan: move this to an argument - and set a cookie so that it is saved |
|
38 | # TODO: dan: move this to an argument - and set a cookie so that it is saved | |
@@ -48,7 +51,20 b' collapse_all = len(diffset.files) > coll' | |||||
48 | } |
|
51 | } | |
49 | </style> |
|
52 | </style> | |
50 | %endif |
|
53 | %endif | |
51 |
|
54 | %if ruler_at_chars: | ||
|
55 | <style> | |||
|
56 | .diff table.cb .cb-content:after { | |||
|
57 | content: ""; | |||
|
58 | border-left: 1px solid blue; | |||
|
59 | position: absolute; | |||
|
60 | top: 0; | |||
|
61 | height: 18px; | |||
|
62 | opacity: .2; | |||
|
63 | z-index: 10; | |||
|
64 | ## +5 to account for diff action (+/-) | |||
|
65 | left: ${ruler_at_chars + 5}ch; | |||
|
66 | </style> | |||
|
67 | %endif | |||
52 | % if diffset.limited_diff: |
|
68 | % if diffset.limited_diff: | |
53 | <div class="alert alert-warning"> |
|
69 | <div class="alert alert-warning"> | |
54 | ${_('The requested commit is too big and content was truncated.')} <a href="${link_for(fulldiff=1)}" onclick="return confirm('${_("Showing a big diff might take some time and resources, continue?")}')">${_('Show full diff')}</a> |
|
70 | ${_('The requested commit is too big and content was truncated.')} <a href="${link_for(fulldiff=1)}" onclick="return confirm('${_("Showing a big diff might take some time and resources, continue?")}')">${_('Show full diff')}</a> |
General Comments 0
You need to be logged in to leave comments.
Login now