diff options
| author | rubenwardy <rw@rubenwardy.com> | 2020-09-16 18:05:37 +0100 |
|---|---|---|
| committer | rubenwardy <rw@rubenwardy.com> | 2020-09-16 18:12:53 +0100 |
| commit | 258a23cd9a36631d8794fbf9251fa5f23c975661 (patch) | |
| tree | 600badfe6a709cabad9e058e78280b6ebd5d9f1c /app/templates/todo/list.html | |
| parent | 92fb54556ad0409a519c308e7e34b63e11621903 (diff) | |
| download | cheatdb-258a23cd9a36631d8794fbf9251fa5f23c975661.tar.xz | |
Allow all users to delete their packages
Diffstat (limited to 'app/templates/todo/list.html')
| -rw-r--r-- | app/templates/todo/list.html | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/templates/todo/list.html b/app/templates/todo/list.html index c3b8118..30b90bb 100644 --- a/app/templates/todo/list.html +++ b/app/templates/todo/list.html @@ -34,7 +34,11 @@ <div class="list-group list-group-flush"> {% for p in wip_packages %} <a href="{{ p.getDetailsURL() }}" class="list-group-item list-group-item-action"> - <span class="mr-2 badge badge-warning">{{ p.state.value }}</span> + {% if p.state == p.state.WIP %} + <span class="mr-2 badge badge-warning">WIP</span> + {% else %} + <span class="mr-2 badge badge-danger">{{ p.state.value }}</span> + {% endif %} {{ p.title }} by {{ p.author.display_name }} </a> |
