diff options
Diffstat (limited to 'ishtar_common/templates/ishtar/sheet.html')
-rw-r--r-- | ishtar_common/templates/ishtar/sheet.html | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ishtar_common/templates/ishtar/sheet.html b/ishtar_common/templates/ishtar/sheet.html index 5676a4419..1c3ae37a0 100644 --- a/ishtar_common/templates/ishtar/sheet.html +++ b/ishtar_common/templates/ishtar/sheet.html @@ -1,4 +1,4 @@ -{% load i18n %}{% block main_head %}<html lang="en"> +{% load i18n ishtar_helpers %}{% block main_head %}<html lang="en"> <head> <title>{% block title %}Ishtar{% if APP_NAME %} - {{APP_NAME}}{%endif%}{% endblock %} </title> @@ -121,12 +121,17 @@ <div class="body"> {% if item.locked %} <div class="alert alert-warning" role="alert"> + {% if item|is_locked:request.user %} <i class="fa fa-lock text-danger" aria-hidden="true"></i> {% if item.lock_user %}{% blocktrans with locker=item.lock_user.ishtaruser %} This item has been locked by {{locker}}. Edition is disabled. {% endblocktrans %}{% else %} {% trans "This item has been locked. Edition is disabled." %} {% endif %} + {% else %} + <i class="fa fa-lock text-success" aria-hidden="true"></i> + {% trans "You have locked this item." %} + {% endif %} </div> {% endif %} {% block content %} |