From eaf0393eabd7089247b152897465b186b92be86f Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 4 Jul 2023 17:31:14 +0200 Subject: ✨ sheet: add a refresh button to update informations MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../templates/ishtar/blocks/window_nav.html | 30 +++++++++++++--------- ishtar_common/templates/ishtar/sheet.html | 4 +-- ishtar_common/templatetags/window_header.py | 2 ++ ishtar_common/views_item.py | 1 + 4 files changed, 23 insertions(+), 14 deletions(-) (limited to 'ishtar_common') diff --git a/ishtar_common/templates/ishtar/blocks/window_nav.html b/ishtar_common/templates/ishtar/blocks/window_nav.html index c1d96acde..41572c5f2 100644 --- a/ishtar_common/templates/ishtar/blocks/window_nav.html +++ b/ishtar_common/templates/ishtar/blocks/window_nav.html @@ -1,11 +1,23 @@ -{% load i18n ishtar_helpers %} +{% load l10n i18n ishtar_helpers %} + {% if not item.is_external %}
- {% if current_user.is_superuser %} - {% if previous or next %}
- {% if previous %} + + {% if current_user.is_superuser and previous %} {% endif %} - {% if next %} + {% if current_user.is_superuser and next %} @@ -30,12 +42,6 @@
- {% else %} -
- {% endif %} - {% else %} -
- {% endif %} {% if pin_action and item.SLUG %}
diff --git a/ishtar_common/templates/ishtar/sheet.html b/ishtar_common/templates/ishtar/sheet.html index f3df2e510..49c06b0a6 100644 --- a/ishtar_common/templates/ishtar/sheet.html +++ b/ishtar_common/templates/ishtar/sheet.html @@ -77,8 +77,8 @@ {% if output != "ODT" and output != "PDF" %} {% block head_sheet %}