diff options
| author | rubenwardy <rw@rubenwardy.com> | 2019-03-30 15:41:38 +0000 |
|---|---|---|
| committer | rubenwardy <rw@rubenwardy.com> | 2019-03-30 15:41:38 +0000 |
| commit | f8b290fc45842e67e86a28e837bdac5fa536d0eb (patch) | |
| tree | bded40c3e75c6287a03bdc1f168d3e173a14d5f3 /app/templates/todo | |
| parent | 7e4eb29db7dbaed9e5fb8001e90833aeef8bbfd9 (diff) | |
| download | cheatdb-f8b290fc45842e67e86a28e837bdac5fa536d0eb.tar.xz | |
Add badges next to packages awaiting approval list
Diffstat (limited to 'app/templates/todo')
| -rw-r--r-- | app/templates/todo/list.html | 10 |
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 %} |
