mirror of https://github.com/snachodog/mybuddy.git
fix: Hide delete inactive timers button if there are no entries
This commit is contained in:
parent
74582effb1
commit
364676aeac
|
@ -63,7 +63,7 @@
|
|||
</div>
|
||||
{% include 'babybuddy/paginator.html' %}
|
||||
|
||||
{% if perms.core.delete_timer %}
|
||||
{% if object_list and perms.core.delete_timer %}
|
||||
<a href="{% url 'core:timer-delete-inactive' %}" class="btn btn-sm btn-danger">
|
||||
<i class="icon-delete" aria-hidden="true"></i> {% trans "Delete Inactive Timers" %}
|
||||
</a>
|
||||
|
|
Loading…
Reference in New Issue