]> git.lizzy.rs Git - cheatdb.git/blobdiff - app/templates/todo/list.html
Allow all users to delete their packages
[cheatdb.git] / app / templates / todo / list.html
index c3b81187463c6b89b17e4414010e7d72612dbe3b..30b90bbea13a63cc3158d1f41d39b6a7010ce0b6 100644 (file)
                                <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>