From 243d474bc51cf1a3bdf9969b92aede818d242293 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Wed, 23 May 2018 19:31:25 +0100 Subject: [PATCH] Allow editing release whilst it's importing --- app/templates/packages/view.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/templates/packages/view.html b/app/templates/packages/view.html index 26bb0eb3..e6a8afc0 100644 --- a/app/templates/packages/view.html +++ b/app/templates/packages/view.html @@ -100,14 +100,14 @@ {{ rel.title }}, created {{ rel.releaseDate }}. {% if rel.task_id %} - Importing + Importing... {% elif not rel.approved %} Waiting for approval. {% endif %} - {% if not rel.task_id and (package.checkPerm(current_user, "MAKE_RELEASE") or package.checkPerm(current_user, "APPROVE_RELEASE")) %} + {% if package.checkPerm(current_user, "MAKE_RELEASE") or package.checkPerm(current_user, "APPROVE_RELEASE") %} Edit - {% if not rel.approved and package.checkPerm(current_user, "APPROVE_RELEASE") %} + {% if not rel.task_id and not rel.approved and package.checkPerm(current_user, "APPROVE_RELEASE") %} / Approve {% endif %}