aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2018-05-27 18:00:23 +0100
committerrubenwardy <rw@rubenwardy.com>2018-05-27 18:00:38 +0100
commit65fdba5882b7de25d95875cea9dfc13e309bd152 (patch)
tree1bdb4f1adfeb1409d31013b328fefba0ef022279
parent54b7e7c3f70c1ae60329ace4423fef7f0e189a39 (diff)
downloadcheatdb-65fdba5882b7de25d95875cea9dfc13e309bd152.tar.xz
Require screenshots for games and texture packs
-rw-r--r--app/templates/packages/view.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/templates/packages/view.html b/app/templates/packages/view.html
index 99b45da..d6b74a6 100644
--- a/app/templates/packages/view.html
+++ b/app/templates/packages/view.html
@@ -20,6 +20,10 @@
{% else %}
A release is required before this package can be approved.
{% endif %}
+
+ {% elif (package.type == package.type.GAME or package.type == package.type.TXP) and package.screenshots.count() == 0 %}
+ You need to add at least one screenshot.
+
{% else %}
{% if package.screenshots.count() == 0 %}
<b>You should add at least one screenshot, but this isn't required.</b><br />