Format process buttons
This commit is contained in:
parent
e4643eea26
commit
0d7a933d1c
1 changed files with 11 additions and 7 deletions
|
@ -1,8 +1,12 @@
|
|||
{% if list_slug != "mine" %} {% if view_completed %}
|
||||
<a href="{% url 'todo:list_detail' list_id list_slug %}" class="btn btn-sm btn-warning">View incomplete tasks</a>
|
||||
{% else %}
|
||||
<a href="{% url 'todo:list_detail_completed' list_id list_slug %}" class="btn btn-sm btn-info">View completed tasks</a>
|
||||
{% endif %}
|
||||
|
||||
<a href="{% url 'todo:del_list' list_id list_slug %}" class="btn btn-sm btn-danger">Delete this list</a>
|
||||
{% endif %}
|
||||
{% if list_slug != "mine" %}
|
||||
{% if view_completed %}
|
||||
<a href="{% url 'todo:list_detail' list_id list_slug %}" class="btn btn-sm btn-warning">View incomplete tasks</a>
|
||||
|
||||
{% else %}
|
||||
<a href="{% url 'todo:list_detail_completed' list_id list_slug %}" class="btn btn-sm btn-info">View completed tasks</a>
|
||||
|
||||
{% endif %}
|
||||
|
||||
<a href="{% url 'todo:del_list' list_id list_slug %}" class="btn btn-sm btn-danger">Delete this list</a>
|
||||
{% endif %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue