From 40ae092306b3bf7420ccd7f7b0dc7e5096ae217d Mon Sep 17 00:00:00 2001 From: Peter Pfeufer Date: Thu, 21 Dec 2023 02:31:51 +0100 Subject: [PATCH 1/2] [ADD] New template block for the character control icons top right This commit adds a new template block called "header_nav_user_character_control" to the base-bs5.html file. This block is intended to display character control icons in the top right section of the navigation bar. The existing code has been modified to include this new block and rearrange the layout accordingly. With this change it is possible to add app specific menu items to the right side as well without having to re-add the character control menu items all the time. Thanks to @aaronkable for discussing this idea with me. --- .../templates/allianceauth/base-bs5.html | 42 +++++++++++-------- 1 file changed, 25 insertions(+), 17 deletions(-) diff --git a/allianceauth/templates/allianceauth/base-bs5.html b/allianceauth/templates/allianceauth/base-bs5.html index e391b581..a4918416 100644 --- a/allianceauth/templates/allianceauth/base-bs5.html +++ b/allianceauth/templates/allianceauth/base-bs5.html @@ -55,27 +55,35 @@ {% endif %} - + - + + {% endif %} From bb44194cfc8813eb91c436b89e4622e3f6479e93 Mon Sep 17 00:00:00 2001 From: Peter Pfeufer Date: Fri, 22 Dec 2023 12:23:23 +0100 Subject: [PATCH 2/2] [CHANGE] Moved corpstats menu and search to heaver navbar Also: - Sorted alts alphabetically - Added table headers --- .../corputils/templates/corputils/base.html | 102 ++++++++---------- .../templates/corputils/corpstats.html | 17 +-- 2 files changed, 55 insertions(+), 64 deletions(-) diff --git a/allianceauth/corputils/templates/corputils/base.html b/allianceauth/corputils/templates/corputils/base.html index 1656ad26..530d3057 100644 --- a/allianceauth/corputils/templates/corputils/base.html +++ b/allianceauth/corputils/templates/corputils/base.html @@ -10,65 +10,53 @@ {% translate "Corporation Member Data" %} {% endblock header_nav_brand %} +{% block header_nav_collapse_left %} + +{% endblock %} + +{% block header_nav_collapse_right %} + +{% endblock %} + {% block content %}
- - {% block member_data %} {% endblock member_data %}
diff --git a/allianceauth/corputils/templates/corputils/corpstats.html b/allianceauth/corputils/templates/corputils/corpstats.html index 393d58cc..4fb18861 100644 --- a/allianceauth/corputils/templates/corputils/corpstats.html +++ b/allianceauth/corputils/templates/corputils/corpstats.html @@ -97,8 +97,8 @@ - - + + @@ -113,9 +113,10 @@ +
{% translate "Main character" %}{% translate "Registered characters" %}
- {% for alt in main.alts %} + {% for alt in main.alts|dictsort:"character_name" %} {% if forloop.first %} @@ -125,6 +126,7 @@ {% endif %} + - + - + {% endfor %} + {% for member in unregistered %} - + {% for member in unregistered %} - +
@@ -133,7 +135,7 @@
{{ alt.character_name }} {{ alt.corporation_name }}{{ alt.alliance_name }}{{ alt.alliance_name|default_if_none:"" }} {% translate "Killboard" %} @@ -176,11 +178,12 @@ {{ member.character_ownership.user.profile.main_character.character_name }} {{ member.character_ownership.user.profile.main_character.corporation_name }}{{ member.character_ownership.user.profile.main_character.alliance_name }}{{ member.character_ownership.user.profile.main_character.alliance_name|default_if_none:"" }}
{{ member.character_name }} {{ member.character_name }} @@ -211,7 +214,7 @@
{{ member.character_name }} {{ member.character_name }}