From 65fdba5882b7de25d95875cea9dfc13e309bd152 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Sun, 27 May 2018 18:00:23 +0100 Subject: [PATCH] Require screenshots for games and texture packs --- app/templates/packages/view.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/templates/packages/view.html b/app/templates/packages/view.html index 99b45da5..d6b74a68 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 %} You should add at least one screenshot, but this isn't required.