Add screenshot recommendation to package alert banner

This commit is contained in:
rubenwardy 2018-05-26 01:29:18 +01:00
parent 2b7cc31b4b
commit 2abcd8ee47
No known key found for this signature in database
GPG Key ID: A1E29D52FF81513C
1 changed files with 8 additions and 4 deletions

View File

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