diff --git a/pagure/templates/pull_request.html b/pagure/templates/pull_request.html index 25e9a4b..6d5d515 100644 --- a/pagure/templates/pull_request.html +++ b/pagure/templates/pull_request.html @@ -27,25 +27,33 @@
{% if pull_request %}

PR#{{requestid}} {{ pull_request.title | noJS(ignore="img") | safe - }}{% if authenticated and (g.fas_user.username == pull_request.user.username - or repo_admin) and pull_request.status == 'Open' - %} + }} + {% if authenticated and (g.fas_user.username == pull_request.user.username + or repo_admin) and pull_request.status == 'Open'%} - edit - - {% if pull_request.status == 'Open' and authenticated and + {% if pull_request.status == 'Open' and authenticated and + (repo_admin or g.fas_user.username == pull_request.user.username) %} +
+ {% endif %} +
+ + {% if pull_request.status == 'Open' and authenticated and (repo_admin or g.fas_user.username == pull_request.user.username) %} - {{ mergeform.csrf_token }} - - + {% endif %} - - {% endif %} +
+ {% if pull_request.status == 'Open' and authenticated and + (repo_admin or g.fas_user.username == pull_request.user.username) %} + + {% endif %} +
+ {% endif %}