From 67b1ab2b1aca65a5df0eebf1a9a23ca27f2f255e Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Apr 15 2015 22:46:25 +0000 Subject: Only show the mergeability of a PR if the PR is still open --- diff --git a/pagure/templates/pull_request.html b/pagure/templates/pull_request.html index 1b13276..fd0c41e 100644 --- a/pagure/templates/pull_request.html +++ b/pagure/templates/pull_request.html @@ -427,6 +427,7 @@ $(obj).html(preview); }); + {% if pull_request.status == True %} $(function(){ $.ajax({ url: '{{ url_for("internal_ns.mergeable_request_pull") }}' , @@ -447,6 +448,7 @@ }); return false; }); + {% endif %} {% endif %}