aboutsummaryrefslogtreecommitdiff
path: root/app/templates/package_details.html
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2018-03-21 16:41:34 +0000
committerrubenwardy <rw@rubenwardy.com>2018-03-21 16:41:34 +0000
commit5cc49f282882bbf8da7430efeb276f0b9975630b (patch)
tree2f37b023f69fd5ecdfc921086824c8f772c9d93c /app/templates/package_details.html
parent32ac60256cd24ec75074cb7add6c47ae49a9e78a (diff)
downloadcheatdb-5cc49f282882bbf8da7430efeb276f0b9975630b.tar.xz
Add package release editing and approving
Diffstat (limited to 'app/templates/package_details.html')
-rw-r--r--app/templates/package_details.html9
1 files changed, 7 insertions, 2 deletions
diff --git a/app/templates/package_details.html b/app/templates/package_details.html
index a2db875..ec54f5f 100644
--- a/app/templates/package_details.html
+++ b/app/templates/package_details.html
@@ -58,9 +58,14 @@
created {{ rel.releaseDate }}.
{% if not rel.approved %}
Waiting for approval.
- {% if package.checkPerm(current_user, "APPROVE_RELEASE") %}
- <a href="">Approve</a>
+ {% endif %}
+
+ {% if package.checkPerm(current_user, "MAKE_RELEASE") or package.checkPerm(current_user, "APPROVE_RELEASE") %}
+ <a href="{{ rel.getEditURL() }}">Edit
+ {% if not rel.approved and package.checkPerm(current_user, "APPROVE_RELEASE") %}
+ / Approve
{% endif %}
+ </a>
{% endif %}
{% if not rel.approved %}</i>{% endif %}