From 2c9d69940dea0cac0c10acd48698c07a2d15c924 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Jul 29 2015 15:49:33 +0000 Subject: Add the anchor to the comment using the comment identifier in inline comments --- diff --git a/pagure/ui/filters.py b/pagure/ui/filters.py index c5e3f62..d10a9a6 100644 --- a/pagure/ui/filters.py +++ b/pagure/ui/filters.py @@ -143,7 +143,13 @@ def format_loc(loc, commit=None, filename=None, prequest=None, index=None): output.append( '' '' - '' + '' '' @@ -159,6 +165,8 @@ def format_loc(loc, commit=None, filename=None, prequest=None, index=None): 'date': comment.date_created.strftime( '%b %d %Y %H:%M:%S'), 'comment': markdown_filter(comment.comment), + 'commentid': comment.id, + 'anchor': u'ΒΆ', } ) )
%(user)s' + '
' + '%(user)s ' + ' %(anchor)s ' + '
' + '
' '%(date)s%(templ_delete)s' '