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 --- changelog/en/changelog_2022-06-15.md | 6 +++++ changelog/fr/changelog_2023-01-25.md | 7 +++++ .../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 + 6 files changed, 36 insertions(+), 14 deletions(-) diff --git a/changelog/en/changelog_2022-06-15.md b/changelog/en/changelog_2022-06-15.md index 0619163cc..d045ac087 100644 --- a/changelog/en/changelog_2022-06-15.md +++ b/changelog/en/changelog_2022-06-15.md @@ -1,3 +1,9 @@ +v4.0.51 - 2099-07-03 +-------------------- + +### Features/improvements ### +- sheet: add a refresh button to update informations + v4.0.50 - 2023-07-03 -------------------- diff --git a/changelog/fr/changelog_2023-01-25.md b/changelog/fr/changelog_2023-01-25.md index 3c49c25dc..794b328aa 100644 --- a/changelog/fr/changelog_2023-01-25.md +++ b/changelog/fr/changelog_2023-01-25.md @@ -1,3 +1,10 @@ +v4.0.51 - 2099-07-03 +-------------------- + +### Fonctionnalités/améliorations ### +- fiche : ajouter un bouton de rafraîchissement pour mettre à jour les informations + + v4.0.50 - 2023-07-03 -------------------- 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 %}