aboutsummaryrefslogtreecommitdiff
path: root/app/templates
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2018-03-21 19:03:14 +0000
committerrubenwardy <rw@rubenwardy.com>2018-03-21 19:03:14 +0000
commitaed805da6eb7cdc3f1f30eaef50cebadf571cf15 (patch)
tree7c0dcb72d367f756b31a01dbeff54512ee35807d /app/templates
parent49a2a9192f683720d4480eb013cfabe9bb07662f (diff)
downloadcheatdb-aed805da6eb7cdc3f1f30eaef50cebadf571cf15.tar.xz
Add new package approval
Diffstat (limited to 'app/templates')
-rw-r--r--app/templates/package_details.html11
1 files changed, 11 insertions, 0 deletions
diff --git a/app/templates/package_details.html b/app/templates/package_details.html
index 58facbc..d0d13e1 100644
--- a/app/templates/package_details.html
+++ b/app/templates/package_details.html
@@ -5,6 +5,17 @@
{% endblock %}
{% block content %}
+ {% if not package.approved %}
+ <div class="box box_grey alert alert-warning">
+ <span class="icon_message"></span>
+ This package needs to be approved before it can be found.
+ {% if package.checkPerm(current_user, "APPROVE_NEW") %}
+ <a href="{{ package.getApproveURL() }}">Approve</a>
+ {% endif %}
+ <div style="clear: both;"></div>
+ </div>
+ {% endif %}
+
<h1>{{ package.title }} by {{ package.author.display_name }}</h1>
<aside class="asideright box box_grey">