Add EditRequest approval and rejection

This commit is contained in:
rubenwardy
2018-03-23 19:49:57 +00:00
parent a5042a986a
commit bb9d589fb5
5 changed files with 88 additions and 14 deletions

View File

@@ -16,6 +16,21 @@
<i>No description given</i>
{% endif %}
</p>
{% if request.status == 1 %}
<div class="box box_grey alert alert-success">
This edit request was merged.
</div>
{% elif request.status == 2 %}
<div class="box box_grey alert alert-error">
This edit request was rejected.
</div>
{% elif package.checkPerm(current_user, "APPROVE_CHANGES") %}
<div class="box box_grey">
To resolve this request, either
<a href="{{ request.getApproveURL() }}">Approve and Apply</a> or
<a href="{{ request.getRejectURL() }}">Reject</a> it.
</div>
{% endif %}
<table>
<tr>

View File

@@ -87,11 +87,11 @@
{% endfor %}
</ul>
{% if current_user.is_authenticated or package.requests %}
{% if current_user.is_authenticated or requests %}
<h3>Edit Requests</h3>
<ul>
{% for r in package.requests %}
{% for r in requests %}
<li>
<a href="{{ r.getURL() }}">{{ r.title }}</a>
by