diff --git a/pagure/templates/_formhelper.html b/pagure/templates/_formhelper.html index 774f6e0..8c5a6e7 100644 --- a/pagure/templates/_formhelper.html +++ b/pagure/templates/_formhelper.html @@ -139,23 +139,27 @@
{% if id != 0 and g.fas_user and comment.parent.status in [True, 'Open'] %} - + {% endif %} - {% if id != 0 and g.fas_user and ( - comment.parent.status in [True, 'Open'] and g.fas_user.username == comment.user.username) %} + {% if id != 0 and g.fas_user and repo_admin or ( + comment.parent.status in [True, 'Open'] + and g.fas_user.username == comment.user.username) %} + '%s/comment/%s/edit' % (request.base_url, comment.id) }}" + data-comment="{{ comment.id }}" data-objid="{{ issueid }}"> {% endif %} - {% if id != 0 and g.fas_user and ( - comment.parent.status in [True, 'Open'] and g.fas_user.username == comment.user.username) %} - {% endif %}