From dd3ef41396a52450920c34fa4df14931c112b289 Mon Sep 17 00:00:00 2001 From: Peter Pfeufer Date: Tue, 16 Jan 2024 19:36:54 +0100 Subject: [PATCH 01/21] [FIX] Attribuite name and mandatory `alt` attribute added --- allianceauth/menu/templates/menu/menu-logo.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/allianceauth/menu/templates/menu/menu-logo.html b/allianceauth/menu/templates/menu/menu-logo.html index 0d128722..858e3884 100644 --- a/allianceauth/menu/templates/menu/menu-logo.html +++ b/allianceauth/menu/templates/menu/menu-logo.html @@ -1,4 +1,5 @@ {% load static %} +
- + {{ SITE_NAME }}
From f8fbbb5ba712b3352b615c3609d7a85253031860 Mon Sep 17 00:00:00 2001 From: Peter Pfeufer Date: Tue, 16 Jan 2024 20:00:53 +0100 Subject: [PATCH 02/21] [CHANGE] Auth menu for public pages --- .../menu/templates/menu/menu-logo.html | 2 +- .../menu/templates/menu/menu-user.html | 47 +++++++++++-------- .../templates/menu/sortable-side-menu.html | 6 ++- .../templates/bundles/image-auth-logo.html | 3 ++ 4 files changed, 36 insertions(+), 22 deletions(-) create mode 100644 allianceauth/templates/bundles/image-auth-logo.html diff --git a/allianceauth/menu/templates/menu/menu-logo.html b/allianceauth/menu/templates/menu/menu-logo.html index 858e3884..d871f4d6 100644 --- a/allianceauth/menu/templates/menu/menu-logo.html +++ b/allianceauth/menu/templates/menu/menu-logo.html @@ -1,5 +1,5 @@ {% load static %}
- {{ SITE_NAME }} + {% include "bundles/image-auth-logo.html" %}
diff --git a/allianceauth/menu/templates/menu/menu-user.html b/allianceauth/menu/templates/menu/menu-user.html index 8469811d..05c15967 100644 --- a/allianceauth/menu/templates/menu/menu-user.html +++ b/allianceauth/menu/templates/menu/menu-user.html @@ -1,30 +1,39 @@ +{% load static %} {% load i18n %} {% load evelinks %} {% load theme_tags %} -
+
- {% with request.user.profile.main_character as main %} - {{ main.character_name }} - {{ main.corporation_name }} - {% if main.alliance_id %} - {{ main.alliance_name }} - {% elif main.faction_id %} - {{ main.faction_name }} - {% endif %} - {% endwith %} + {% if user.is_authenticated %} + {% with request.user.profile.main_character as main %} + {{ main.character_name }} + {{ main.corporation_name }} + {% if main.alliance_id %} + {{ main.alliance_name }} + {% elif main.faction_id %} + {{ main.faction_name }} + {% endif %} + {% endwith %} + {% else %} + {% include "bundles/image-auth-logo.html" with logo_width="64px" %} + {% endif %}
- {% with request.user.profile.main_character as main %} -
{{ main.character_name }}
-

{{ main.corporation_name }}

- {% if main.alliance_id %} -

{{ main.alliance_name }}

- {% elif main.faction_id %} -

{{ main.faction_name }}

- {% endif %} - {% endwith %} + {% if user.is_authenticated %} + {% with request.user.profile.main_character as main %} +
{{ main.character_name }}
+

{{ main.corporation_name }}

+ {% if main.alliance_id %} +

{{ main.alliance_name }}

+ {% elif main.faction_id %} +

{{ main.faction_name }}

+ {% endif %} + {% endwith %} + {% else %} +
{{ SITE_NAME }}
+ {% endif %}
-
From 8a3fb171479fe77f0eb8255cbd196ab9687b096c Mon Sep 17 00:00:00 2001 From: Peter Pfeufer Date: Wed, 17 Jan 2024 20:04:07 +0100 Subject: [PATCH 08/21] [CHANGE] Reduce the width of the side menu to 300px This gives the apps a bit of wiggle room for all the tables we have there. --- allianceauth/menu/templates/menu/sortable-side-menu.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/allianceauth/menu/templates/menu/sortable-side-menu.html b/allianceauth/menu/templates/menu/sortable-side-menu.html index 504e1a0e..aaa399bb 100644 --- a/allianceauth/menu/templates/menu/sortable-side-menu.html +++ b/allianceauth/menu/templates/menu/sortable-side-menu.html @@ -4,7 +4,7 @@