Correct new line numbers in diff viewer

With each new hunk, starting new line number was the same as starting old
line number. Parse diff line a bit further to get real new line number.

Fix HREFs for old line number links in both bootstrap3 and default themes
so that thay work.
This commit is contained in:
Mike Gelfand
2014-07-13 12:10:27 +03:00
parent 6c99ffee4c
commit 3cba2eb82c
3 changed files with 4 additions and 4 deletions

View File

@@ -45,7 +45,7 @@
<td class="lineNo">
{% if line.getType != 'chunk' %}
<a name="L{{ loop.index }}R{{ line.getNumOld }}"></a>
<a href="#L{{ loop.index }}L{{ line.getNumOld }}">
<a href="#L{{ loop.index }}R{{ line.getNumOld }}">
{% endif %}
{{ line.getNumOld }}
{% if line.getType != 'chunk' %}