From e07f2515a169f4135f05ab54a214703dda4ac0cc Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Wed, 23 May 2018 19:30:11 +0100 Subject: [PATCH] Disallow approving release when it's still importing --- app/templates/packages/release_edit.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/templates/packages/release_edit.html b/app/templates/packages/release_edit.html index 4b8862fe..2094b745 100644 --- a/app/templates/packages/release_edit.html +++ b/app/templates/packages/release_edit.html @@ -28,12 +28,12 @@ {% endif %}
- {% endif %} - - {% if package.checkPerm(current_user, "APPROVE_RELEASE") %} - {{ render_field(form.approved) }} {% else %} - Approved: {{ release.approved }} + {% if package.checkPerm(current_user, "APPROVE_RELEASE") %} + {{ render_field(form.approved) }} + {% else %} + Approved: {{ release.approved }} + {% endif %} {% endif %} {{ render_submit_field(form.submit) }}