From 977e5e4337366d8470acbd37fefdfa1342b8da26 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 6 Nov 2017 19:19:11 +0100 Subject: UI: work on shortcut menu --- ishtar_common/templates/base.html | 2 +- .../templates/ishtar/blocks/shortcut_menu.html | 76 ++++++++++++---------- 2 files changed, 41 insertions(+), 37 deletions(-) (limited to 'ishtar_common/templates') diff --git a/ishtar_common/templates/base.html b/ishtar_common/templates/base.html index 835dae7b1..8b5c73ba1 100644 --- a/ishtar_common/templates/base.html +++ b/ishtar_common/templates/base.html @@ -51,7 +51,7 @@
- {% if not reminders %}
+ {% if not reminders %} {% else %}
{% trans "Current items" %} {% for lbl, value in reminders %}

{{lbl}}{% trans ":"%} {{value}}

diff --git a/ishtar_common/templates/ishtar/blocks/shortcut_menu.html b/ishtar_common/templates/ishtar/blocks/shortcut_menu.html index 67f91dfea..a4855dd10 100644 --- a/ishtar_common/templates/ishtar/blocks/shortcut_menu.html +++ b/ishtar_common/templates/ishtar/blocks/shortcut_menu.html @@ -1,42 +1,46 @@ {% load i18n %} {% if current_menu %} -
-
- - - - - - - - -
- - + -
- - -{% for lbl, model_name, main_cls, items in current_menu %} - - - {% with 'show-'|add:model_name as model_url%} - - - {% endwith %} - -{% endfor %} -
- - - -
-
-
-