changeset 6237:e55041bb3585

diff: don't make '...' a broken link - it doesn't do anything so don't make it a link It would be nice if it could expand it and increase the context size like bitbucket does ... but that would be a bigger change.
author Mads Kiilerich <madski@unity3d.com>
date Sun, 25 Sep 2016 17:21:07 +0200
parents 39a59e6915bb
children d5b837c8b451
files kallithea/lib/diffs.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/lib/diffs.py	Sun Sep 25 17:21:07 2016 +0200
+++ b/kallithea/lib/diffs.py	Sun Sep 25 17:21:07 2016 +0200
@@ -731,7 +731,7 @@
                     })
 
                     _html.append('''%(link)s''' % {
-                        'link': _link_to_if(True, change['old_lineno'],
+                        'link': _link_to_if(not no_lineno, change['old_lineno'],
                                             '#%s' % anchor_old)
                     })
                     _html.append('''</td>\n''')