aboutsummaryrefslogtreecommitdiff
path: root/app/templates/todo
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2019-03-30 15:41:38 +0000
committerrubenwardy <rw@rubenwardy.com>2019-03-30 15:41:38 +0000
commitf8b290fc45842e67e86a28e837bdac5fa536d0eb (patch)
treebded40c3e75c6287a03bdc1f168d3e173a14d5f3 /app/templates/todo
parent7e4eb29db7dbaed9e5fb8001e90833aeef8bbfd9 (diff)
downloadcheatdb-f8b290fc45842e67e86a28e837bdac5fa536d0eb.tar.xz
Add badges next to packages awaiting approval list
Diffstat (limited to 'app/templates/todo')
-rw-r--r--app/templates/todo/list.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/templates/todo/list.html b/app/templates/todo/list.html
index 2a6fa5e..3eb3251 100644
--- a/app/templates/todo/list.html
+++ b/app/templates/todo/list.html
@@ -15,6 +15,16 @@
<div class="list-group list-group-flush">
{% for p in packages %}
<a href="{{ p.getDetailsURL() }}" class="list-group-item list-group-item-action">
+ {% if p.getState() == "thread" %}
+ <span class="mr-2 badge badge-danger">Thread</span>
+ {% elif p.getState() == "ready" %}
+ <span class="mr-2 badge badge-success">Ready</span>
+ {% elif p.getState() == "wip" %}
+ <span class="mr-2 badge badge-warning">WIP</span>
+ {% elif p.getState() == "license" %}
+ <span class="mr-2 badge badge-info">WIP</span>
+ {% endif %}
+
{{ p.title }} by {{ p.author.display_name }}
</a>
{% else %}