diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-09-24 10:33:07 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-09-24 10:33:07 +0200 |
commit | ff8681360e589ff3c8e63dcef6ad0d31ac8ecab8 (patch) | |
tree | aff85c928066d444a8639daf6dd1c52d38e6c7dc /ishtar_common/templates/ishtar/blocks/window_nav.html | |
parent | fee9b4904fee90077cdb73ecddc130288ba0ab21 (diff) | |
download | Ishtar-ff8681360e589ff3c8e63dcef6ad0d31ac8ecab8.tar.bz2 Ishtar-ff8681360e589ff3c8e63dcef6ad0d31ac8ecab8.zip |
Allow own locker to edit their locks
Diffstat (limited to 'ishtar_common/templates/ishtar/blocks/window_nav.html')
-rw-r--r-- | ishtar_common/templates/ishtar/blocks/window_nav.html | 6 |
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> |