summaryrefslogtreecommitdiff
path: root/ishtar_common/templates/ishtar/blocks/window_nav.html
diff options
context:
space:
mode:
Diffstat (limited to 'ishtar_common/templates/ishtar/blocks/window_nav.html')
-rw-r--r--ishtar_common/templates/ishtar/blocks/window_nav.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/ishtar_common/templates/ishtar/blocks/window_nav.html b/ishtar_common/templates/ishtar/blocks/window_nav.html
index c248bae82..60e620f16 100644
--- a/ishtar_common/templates/ishtar/blocks/window_nav.html
+++ b/ishtar_common/templates/ishtar/blocks/window_nav.html
@@ -1,4 +1,4 @@
-{% load i18n %}
+{% load i18n ishtar_helpers %}
<div class="row toolbar">
{% if previous or next %}
<div class='col-md-2'>
@@ -44,7 +44,7 @@
{% endif %}
<div class="btn-group btn-group-sm" role="group" aria-label="{% trans 'Actions' %}">
{% block extra_actions %}{% endblock %}
- {% if modify_url and not item.locked %}
+ {% if modify_url and not item|is_locked:current_user %}
<a class="btn btn-success wait-button" href='{% url modify_url item.pk %}'
title="{% trans 'Modify' %}">
<i class="fa fa-pencil"></i>
@@ -56,7 +56,7 @@
<i class="{{icon}}"></i> {{extra_text}}
</a>
{% endfor %}
- {% if delete_url and not item.locked %}
+ {% if delete_url and not item|is_locked:current_user %}
<a class="btn btn-danger wait-button" href='{% url delete_url item.pk %}'
title="{% trans 'Delete' %}">
<i class="fa fa-trash" aria-hidden="true"></i>