From 6d1fc8e14be0e2d166c97f5a97748d892358145a Mon Sep 17 00:00:00 2001 From: Ryan Lerch Date: Feb 04 2016 11:29:37 +0000 Subject: fix for #682: made the PR actions a buttonbar Made the PR actions at the top of the PR into a buttonbar to make it look similar to the other buttons in for eding comments. (but left them as coloured buttons) I had to move the form call outside of the button-group class as it was causing issues with the styling. --- 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 %}