From 13837ce88bf6c80af9308942843425a89f244ba3 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Sat, 7 Jul 2018 00:28:27 +0100 Subject: Add forum topic validation --- app/templates/packages/view.html | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'app/templates') diff --git a/app/templates/packages/view.html b/app/templates/packages/view.html index df31ce1..b118046 100644 --- a/app/templates/packages/view.html +++ b/app/templates/packages/view.html @@ -24,6 +24,9 @@ {% 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. + {% elif topic_error_lvl == "error" %} + Please fix the below topic issue(s). + {% else %} {% if package.screenshots.count() == 0 %} You should add at least one screenshot, but this isn't required.
@@ -44,6 +47,14 @@
+ {% if topic_error %} +
+ + {{ topic_error | safe }} +
+
+ {% endif %} + {% if package.author == current_user or package.checkPerm(current_user, "APPROVE_NEW") %} {% if review_thread %}

🔒 {{ review_thread.title }}

-- cgit v1.2.3