From 0a72a38dd0fa380afa85d8176ccf0ed60d7d237d Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Mon, 21 May 2018 22:26:48 +0100 Subject: Add release requirement to package approval --- app/templates/packages/view.html | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/app/templates/packages/view.html b/app/templates/packages/view.html index d6cb8ca..150abee 100644 --- a/app/templates/packages/view.html +++ b/app/templates/packages/view.html @@ -8,12 +8,20 @@ {% if not package.approved %}
- This package needs to be approved before it can be found. - {% if package.checkPerm(current_user, "APPROVE_NEW") %} -
- - -
+ {% if package.releases.count() == 0 %} + You need to create a release before this package can be approved. + {% elif not package.getDownloadRelease() %} + Please wait for the release to be approved. + {% else %} + {% if package.checkPerm(current_user, "APPROVE_NEW") %} + You can now approve this package if you're ready. +
+ + +
+ {% else %} + This package needs to be approved before it can be found. + {% endif %} {% endif %}
-- cgit v1.2.3