From 0491a618d181a8357191f395534ef1b0301a7f0a Mon Sep 17 00:00:00 2001 From: Miro Hrončok Date: Mar 18 2020 12:59:50 +0000 Subject: Make sure orphaned & retired packages can be claimed When the package is orphaned, the "take" button shows as disabled in the UI, until we check if the package is orphaned and retired or just orphaned. Except that in the case where the package is orphaned and retired, we re-purpose that button to send the users to the releng issue tracker to ask for the package to be un-retired/un-blocked, but we did not re-enable the button. This led to a button being re-purposed but not re-actived, and thus clicking on the button did not have any effect. This commit fixes that by making sure that we always re-enable the button, either because the package is orphaned and not retired and packagers can just adopt it, or because the package is orphaned and retired and by clicking on the button packagers will be sent to the releng issue tracker where they'll be able to ask for the package to be un-blocked. Signed-off-by: Miro Hrončok Co-Authored-By: Pierre-Yves Chibon --- diff --git a/pagure/themes/srcfpo/templates/repo_master_sidebar.html b/pagure/themes/srcfpo/templates/repo_master_sidebar.html index 813e6c0..9b6dac0 100644 --- a/pagure/themes/srcfpo/templates/repo_master_sidebar.html +++ b/pagure/themes/srcfpo/templates/repo_master_sidebar.html @@ -355,9 +355,8 @@ }); _btn.prop( "title", "Package retired - Open a releng ticket to adopt it" ); _btn.html("Retired"); - } else { - _btn.removeClass('disabled'); } + _btn.removeClass('disabled'); } }); {% endif %}