From b8aa3bc02a25b8975f4dfa1de59790658526b1ed Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Apr 16 2015 01:38:19 +0000 Subject: Set an informative message instead of using alert This when we fail to determine the state of the PR wrt merging --- diff --git a/pagure/templates/pull_request.html b/pagure/templates/pull_request.html index fd0c41e..3e314fc 100644 --- a/pagure/templates/pull_request.html +++ b/pagure/templates/pull_request.html @@ -443,7 +443,8 @@ +res.message+'">'+res.short_code+'')); }, error: function() { - alert('Unable to generate preview!'); + var _obj = $('.header .buttons'); + _obj.prepend($('
  • Could not determine if the PR can be merged
  • ')); } }); return false;