Add new package approval

This commit is contained in:
rubenwardy
2018-03-21 19:03:14 +00:00
parent 49a2a9192f
commit aed805da6e
4 changed files with 48 additions and 3 deletions

View File

@@ -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">