diff options
| author | rubenwardy <rw@rubenwardy.com> | 2018-03-21 19:03:14 +0000 |
|---|---|---|
| committer | rubenwardy <rw@rubenwardy.com> | 2018-03-21 19:03:14 +0000 |
| commit | aed805da6eb7cdc3f1f30eaef50cebadf571cf15 (patch) | |
| tree | 7c0dcb72d367f756b31a01dbeff54512ee35807d /app/templates | |
| parent | 49a2a9192f683720d4480eb013cfabe9bb07662f (diff) | |
| download | cheatdb-aed805da6eb7cdc3f1f30eaef50cebadf571cf15.tar.xz | |
Add new package approval
Diffstat (limited to 'app/templates')
| -rw-r--r-- | app/templates/package_details.html | 11 |
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"> |
