mirror of
https://github.com/minetest/contentdb.git
synced 2025-03-22 10:12:28 +01:00
Add release requirement to package approval
This commit is contained in:
@ -8,12 +8,20 @@
|
|||||||
{% if not package.approved %}
|
{% if not package.approved %}
|
||||||
<div class="box box_grey alert alert-warning">
|
<div class="box box_grey alert alert-warning">
|
||||||
<span class="icon_message"></span>
|
<span class="icon_message"></span>
|
||||||
This package needs to be approved before it can be found.
|
{% if package.releases.count() == 0 %}
|
||||||
{% if package.checkPerm(current_user, "APPROVE_NEW") %}
|
You need to create a release before this package can be approved.
|
||||||
<form method="post" action="{{ package.getApproveURL() }}">
|
{% elif not package.getDownloadRelease() %}
|
||||||
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
|
Please wait for the release to be approved.
|
||||||
<input type="submit" value="Approve" />
|
{% else %}
|
||||||
</form>
|
{% if package.checkPerm(current_user, "APPROVE_NEW") %}
|
||||||
|
You can now approve this package if you're ready.
|
||||||
|
<form method="post" action="{{ package.getApproveURL() }}">
|
||||||
|
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
|
||||||
|
<input type="submit" value="Approve" />
|
||||||
|
</form>
|
||||||
|
{% else %}
|
||||||
|
This package needs to be approved before it can be found.
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div style="clear: both;"></div>
|
<div style="clear: both;"></div>
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user