aboutsummaryrefslogtreecommitdiff
path: root/app/templates/todo
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2018-06-02 19:41:13 +0100
committerrubenwardy <rw@rubenwardy.com>2018-06-02 19:41:13 +0100
commit3657316fa23e85b82b4259b2f993e020309c7f24 (patch)
treefeba56051cff65335e93ef96067fd9209674031d /app/templates/todo
parenta6f4249afb7018c43e69a7e7c7e69e53bf04aa8d (diff)
downloadcheatdb-3657316fa23e85b82b4259b2f993e020309c7f24.tar.xz
Clean up todo topics related HTML
Diffstat (limited to 'app/templates/todo')
-rw-r--r--app/templates/todo/list.html24
1 files changed, 16 insertions, 8 deletions
diff --git a/app/templates/todo/list.html b/app/templates/todo/list.html
index 20e8f4f..f2172a6 100644
--- a/app/templates/todo/list.html
+++ b/app/templates/todo/list.html
@@ -5,8 +5,10 @@
{% endblock %}
{% block content %}
- {% if canApproveNew %}
- <h2>Packages Awaiting Approval</h2>
+ <h2>Awaiting Approval</h2>
+
+ {% if canApproveNew and packages %}
+ <h3>Packages</h3>
<ul>
{% for p in packages %}
<li><a href="{{ p.getDetailsURL() }}">
@@ -18,8 +20,8 @@
</ul>
{% endif %}
- {% if canApproveScn %}
- <h2>Screenshots Awaiting Approval</h2>
+ {% if canApproveScn and screenshots %}
+ <h3>Screenshots</h3>
<ul>
{% for s in screenshots %}
<li>
@@ -35,8 +37,8 @@
</ul>
{% endif %}
- {% if canApproveRel %}
- <h2>Releases Awaiting Approval</h2>
+ {% if canApproveRel and releases %}
+ <h3>Releases</h3>
<ul>
{% for r in releases %}
<li>
@@ -52,11 +54,17 @@
</ul>
{% endif %}
- <h2>Forum Topics without a Package</h2>
+ {% if not (packages or screenshots or releases) %}
+ <p>
+ <i>All done!</i>
+ </p>
+ {% endif %}
+
+ <h2>Unadded Topic List</h2>
<p>
There are
<a href="{{ url_for('todo_topics_page') }}">{{ topics_to_add }} packages</a>
- to be added to cdb.
+ to be added to cdb, based on forum topics picked up by Krock's mod search.
</p>
{% endblock %}