-
+
{% if leaverequest.main_char %}
{{ leaverequest.main_char.character_name }}
diff --git a/allianceauth/hooks.py b/allianceauth/hooks.py
index 70ca3439..0a91942b 100644
--- a/allianceauth/hooks.py
+++ b/allianceauth/hooks.py
@@ -134,5 +134,5 @@ class DashboardItemHook:
logger.debug(f"Rendering {self.view_function} to dashboard")
return self.view_function(request)
except Exception as e:
- logger.exception("Rendering {self.view_function} Failed!")
+ logger.exception(f"Rendering {self.view_function} failed!")
return ""
diff --git a/allianceauth/hrapplications/templates/hrapplications/management.html b/allianceauth/hrapplications/templates/hrapplications/management.html
index 6e8844c4..b6bdc739 100644
--- a/allianceauth/hrapplications/templates/hrapplications/management.html
+++ b/allianceauth/hrapplications/templates/hrapplications/management.html
@@ -33,11 +33,11 @@
| {{ personal_app.form.corp.corporation_name }} |
{% if personal_app.approved == None %}
- {% translate "Pending" %}
+ {% translate "Pending" %}
{% elif personal_app.approved == True %}
- {% translate "Approved" %}
+ {% translate "Approved" %}
{% else %}
- {% translate "Rejected" %}
+ {% translate "Rejected" %}
{% endif %}
|
@@ -91,14 +91,14 @@
|
{% if app.approved == None %}
{% if app.reviewer_str %}
- {% translate "Reviewer:" %} {{ app.reviewer_str }}
+ {% translate "Reviewer:" %} {{ app.reviewer_str }}
{% else %}
- {% translate "Pending" %}
+ {% translate "Pending" %}
{% endif %}
{% elif app.approved == True %}
- {% translate "Approved" %}
+ {% translate "Approved" %}
{% else %}
- {% translate "Rejected" %}
+ {% translate "Rejected" %}
{% endif %}
|
@@ -135,14 +135,14 @@
|
{% if app.approved == None %}
{% if app.reviewer_str %}
- {% translate "Reviewer:" %} {{ app.reviewer_str }}
+ {% translate "Reviewer:" %} {{ app.reviewer_str }}
{% else %}
- {% translate "Pending" %}
+ {% translate "Pending" %}
{% endif %}
{% elif app.approved == True %}
- {% translate "Approved" %}
+ {% translate "Approved" %}
{% else %}
- {% translate "Rejected" %}
+ {% translate "Rejected" %}
{% endif %}
|
diff --git a/allianceauth/hrapplications/templates/hrapplications/searchview.html b/allianceauth/hrapplications/templates/hrapplications/searchview.html
index b1098da2..19b8e801 100644
--- a/allianceauth/hrapplications/templates/hrapplications/searchview.html
+++ b/allianceauth/hrapplications/templates/hrapplications/searchview.html
@@ -34,11 +34,11 @@
| {{ app.form.corp }} |
{% if app.approved == None %}
- {% translate "Pending" %}
+ {% translate "Pending" %}
{% elif app.approved == True %}
- {% translate "Approved" %}
+ {% translate "Approved" %}
{% else %}
- {% translate "Rejected" %}
+ {% translate "Rejected" %}
{% endif %}
|
diff --git a/allianceauth/menu/hooks.py b/allianceauth/menu/hooks.py
index 5dde9359..94ea033d 100644
--- a/allianceauth/menu/hooks.py
+++ b/allianceauth/menu/hooks.py
@@ -8,7 +8,7 @@ class MenuItemHook:
"""
Auth Hook for generating Side Menu Items
"""
- def __init__(self, text: str, classes: List[str], url_name: str, order: Optional[int] = None, navactive: List = list([])):
+ def __init__(self, text: str, classes: str, url_name: str, order: Optional[int] = None, navactive: List = []):
"""
:param text: The text shown as menu item, e.g. usually the name of the app.
:type text: str
diff --git a/allianceauth/menu/templates/menu/menu-item-bs5.html b/allianceauth/menu/templates/menu/menu-item-bs5.html
index 27ff379a..c8d5b2f0 100644
--- a/allianceauth/menu/templates/menu/menu-item-bs5.html
+++ b/allianceauth/menu/templates/menu/menu-item-bs5.html
@@ -8,7 +8,7 @@
{% translate item.text %}
{% if item.count >= 1 %}
-
+
{{ item.count }}
{% elif item.url %}
diff --git a/allianceauth/menu/templates/menu/menu-notification-block.html b/allianceauth/menu/templates/menu/menu-notification-block.html
index c4e4a1c3..fc3b3dcd 100644
--- a/allianceauth/menu/templates/menu/menu-notification-block.html
+++ b/allianceauth/menu/templates/menu/menu-notification-block.html
@@ -7,9 +7,7 @@
href="{% url 'notifications:list' %}">
{% with unread_count=request.user|user_unread_notification_count %}
-
+
{% endwith %}
diff --git a/allianceauth/menu/templates/menu/menu-user.html b/allianceauth/menu/templates/menu/menu-user.html
index 52b2afeb..efffebdd 100644
--- a/allianceauth/menu/templates/menu/menu-user.html
+++ b/allianceauth/menu/templates/menu/menu-user.html
@@ -1,51 +1,57 @@
{% load i18n %}
{% load evelinks %}
{% load theme_tags %}
-
- {% if request.user.profile.main_character %}
- {% with request.user.profile.main_character as main %}
-
- 
- 
- {% if main.alliance_id %}
- 
- {% elif main.faction_id %}
- 
- {% endif %}
-
- {{ main.character_name }}
- {% endwith %}
- {% else %}
- 
- {% translate "No Main Character!" %}
- {% endif %}
+
{% if user.is_authenticated %}
+ {% if request.user.profile.main_character %}
+ {% with request.user.profile.main_character as main %}
+
+ 
+ 
+ {% if main.alliance_id %}
+ 
+ {% elif main.faction_id %}
+ 
+ {% endif %}
+
+ {{ main.character_name }}
+ {% endwith %}
+ {% else %}
+ 
+ {% translate "No Main Character!" %}
+ {% endif %}
+
{% theme_select %}
{% endif %}
+
+
-
- {% if user.is_superuser %}
-
-
-
- {% endif %}
- {% if user.is_authenticated %}
-
- {% else %}
-
- {% endif %}
+ {% if user.is_authenticated %}
+
+ {% endif %}
+
+ {% if user.is_superuser %}
+
+
+
+ {% endif %}
+
+ {% if user.is_authenticated %}
+
+ {% else %}
+
+ {% endif %}
diff --git a/allianceauth/menu/templates/menu/sortable-side-menu.html b/allianceauth/menu/templates/menu/sortable-side-menu.html
index 1ee45fce..12375745 100644
--- a/allianceauth/menu/templates/menu/sortable-side-menu.html
+++ b/allianceauth/menu/templates/menu/sortable-side-menu.html
@@ -5,15 +5,18 @@
|