mirror of
https://github.com/minetest/contentdb.git
synced 2025-01-10 23:17:37 +01:00
Add screenshot recommendation to package alert banner
This commit is contained in:
parent
2b7cc31b4b
commit
2abcd8ee47
@ -20,17 +20,21 @@
|
|||||||
{% else %}
|
{% else %}
|
||||||
A release is required before this package can be approved.
|
A release is required before this package can be approved.
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% elif not package.getDownloadRelease() %}
|
|
||||||
Please wait for the release to be approved.
|
|
||||||
{% else %}
|
{% else %}
|
||||||
{% if package.checkPerm(current_user, "APPROVE_NEW") %}
|
{% if package.screenshots.count() == 0 %}
|
||||||
|
<b>You should add at least one screenshot, but this isn't required.</b><br />
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% if not package.getDownloadRelease() %}
|
||||||
|
Please wait for the release to be approved.
|
||||||
|
{% elif package.checkPerm(current_user, "APPROVE_NEW") %}
|
||||||
You can now approve this package if you're ready.
|
You can now approve this package if you're ready.
|
||||||
<form method="post" action="{{ package.getApproveURL() }}">
|
<form method="post" action="{{ package.getApproveURL() }}">
|
||||||
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
|
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
|
||||||
<input type="submit" value="Approve" />
|
<input type="submit" value="Approve" />
|
||||||
</form>
|
</form>
|
||||||
{% else %}
|
{% else %}
|
||||||
This package needs to be approved before it can be found.
|
Please wait for the package to be approved.
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div style="clear: both;"></div>
|
<div style="clear: both;"></div>
|
||||||
|
Loading…
Reference in New Issue
Block a user