From ca3bcc565de495567353650ba20e69422ec27016 Mon Sep 17 00:00:00 2001 From: "Langhammer, Jens" Date: Thu, 10 Oct 2019 10:02:48 +0200 Subject: [PATCH] ui(minor): simplify top navigation --- passbook/core/templates/base/skeleton.html | 3 -- .../core/templates/base/skeleton_login.html | 3 -- passbook/core/templates/overview/base.html | 43 ++++++------------- .../core/templates/partials/about_modal.html | 36 ---------------- passbook/core/templates/user/base.html | 28 ++++++------ 5 files changed, 28 insertions(+), 85 deletions(-) delete mode 100644 passbook/core/templates/partials/about_modal.html diff --git a/passbook/core/templates/base/skeleton.html b/passbook/core/templates/base/skeleton.html index cc3935343..80b231e4a 100644 --- a/passbook/core/templates/base/skeleton.html +++ b/passbook/core/templates/base/skeleton.html @@ -46,9 +46,6 @@ {% block scripts %} {% endblock %} -
- {% include 'partials/about_modal.html' %} -
diff --git a/passbook/core/templates/base/skeleton_login.html b/passbook/core/templates/base/skeleton_login.html index a747775c9..1c6e955c4 100644 --- a/passbook/core/templates/base/skeleton_login.html +++ b/passbook/core/templates/base/skeleton_login.html @@ -46,9 +46,6 @@ {% block scripts %} {% endblock %} -
- {% include 'partials/about_modal.html' %} -
diff --git a/passbook/core/templates/overview/base.html b/passbook/core/templates/overview/base.html index 04982586d..f48a0f234 100644 --- a/passbook/core/templates/overview/base.html +++ b/passbook/core/templates/overview/base.html @@ -23,37 +23,18 @@ diff --git a/passbook/core/templates/partials/about_modal.html b/passbook/core/templates/partials/about_modal.html deleted file mode 100644 index fc5251b70..000000000 --- a/passbook/core/templates/partials/about_modal.html +++ /dev/null @@ -1,36 +0,0 @@ -{% load static %} -{% load i18n %} -{% load cache %} - -{% load utils %} - - diff --git a/passbook/core/templates/user/base.html b/passbook/core/templates/user/base.html index 58b0bac53..953dd39e4 100644 --- a/passbook/core/templates/user/base.html +++ b/passbook/core/templates/user/base.html @@ -16,23 +16,27 @@ {% trans 'Details' %} - {% user_factors as uf %} + {% if uf %} + + {% endif %} {% for user_settings in uf %} -
  • - - {{ user_settings.name }} - -
  • +
  • + + {{ user_settings.name }} + +
  • {% endfor %} - {% user_sources as us %} + {% if us %} + + {% endif %} {% for user_settings in us %} -
  • - - {{ user_settings.name }} - -
  • +
  • + + {{ user_settings.name }} + +
  • {% endfor %}