From e68db51f2a7e0b944d3b298f5273d3e69c07f3a9 Mon Sep 17 00:00:00 2001 From: Ryan Lerch Date: Jan 12 2016 11:12:47 +0000 Subject: made assigning a user to a PR work, and the UX the same as issues --- diff --git a/pagure/templates/pull_request.html b/pagure/templates/pull_request.html index 7f816ea..b57c7ca 100644 --- a/pagure/templates/pull_request.html +++ b/pagure/templates/pull_request.html @@ -382,33 +382,34 @@ {% endif %} - {#
- - - - - - - - -
Assignee - {% if authenticated and mergeform and pull_request.status == True %} -
+ {% if authenticated and mergeform and pull_request.status == 'Open' %} + +
+
+ + {% endif %} + + {% if authenticated and mergeform and pull_request.status == 'Open' %} + + + + + {% endif %}
- #} {% endif %} {% if diff and pull_request%} @@ -772,6 +773,13 @@ $('#assignee').selectize({ } }); + $( ".editmetadatatoggle" ).click( + function() { + $( ".issue-metadata-form" ).toggle(); + $( ".issue-metadata-display" ).toggle(); + } + ); + function try_async_comment(form, inline) { $(form).off('submit'); $(form).find('input[type="submit"]').attr("disabled", "disabled");