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>
|
</div>
|
||||||
{% include 'babybuddy/paginator.html' %}
|
{% 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">
|
<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" %}
|
<i class="icon-delete" aria-hidden="true"></i> {% trans "Delete Inactive Timers" %}
|
||||||
</a>
|
</a>
|
||||||
|
|
Loading…
Reference in New Issue