mirror of
https://github.com/minetest/contentdb.git
synced 2024-12-22 22:12:24 +01:00
Add screenshot recommendation to package alert banner
This commit is contained in:
parent
2b7cc31b4b
commit
2abcd8ee47
@ -20,17 +20,21 @@
|
||||
{% else %}
|
||||
A release is required before this package can be approved.
|
||||
{% endif %}
|
||||
{% elif not package.getDownloadRelease() %}
|
||||
Please wait for the release to be approved.
|
||||
{% 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.
|
||||
<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.
|
||||
Please wait for the package to be approved.
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
<div style="clear: both;"></div>
|
||||
|
Loading…
Reference in New Issue
Block a user