aboutsummaryrefslogtreecommitdiff
path: root/app/templates/packages
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2018-07-07 00:28:27 +0100
committerrubenwardy <rw@rubenwardy.com>2018-07-07 00:28:27 +0100
commit13837ce88bf6c80af9308942843425a89f244ba3 (patch)
tree7abacaa0ae192f47b9d13913d0302b87795cc205 /app/templates/packages
parent73c65e3561618c12f9eed11cc204fc346cd14afa (diff)
downloadcheatdb-1.8.0.tar.xz
Add forum topic validationv1.8.0
Diffstat (limited to 'app/templates/packages')
-rw-r--r--app/templates/packages/view.html11
1 files changed, 11 insertions, 0 deletions
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 %}
<b>You should add at least one screenshot, but this isn't required.</b><br />
@@ -44,6 +47,14 @@
<div style="clear: both;"></div>
</div>
+ {% if topic_error %}
+ <div class="box box_grey alert alert-{{ topic_error_lvl }}">
+ <span class="icon_message"></span>
+ {{ topic_error | safe }}
+ <div style="clear: both;"></div>
+ </div>
+ {% endif %}
+
{% if package.author == current_user or package.checkPerm(current_user, "APPROVE_NEW") %}
{% if review_thread %}
<h2>&#x1f512; {{ review_thread.title }}</h2>