From ed4270a0e39c544d440d6e06a0b79abf42b196a7 Mon Sep 17 00:00:00 2001 From: AaronKable Date: Thu, 14 May 2020 17:05:01 +0800 Subject: [PATCH] Use existing character variable. --- .../templates/authentication/dashboard.html | 24 +++++++++---------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/allianceauth/authentication/templates/authentication/dashboard.html b/allianceauth/authentication/templates/authentication/dashboard.html index b6ea8204..c7a0adbf 100644 --- a/allianceauth/authentication/templates/authentication/dashboard.html +++ b/allianceauth/authentication/templates/authentication/dashboard.html @@ -141,19 +141,17 @@ - {% for ownership in request.user.character_ownerships.all %} - {% with ownership.character as char %} - - - - - {% endwith %} + {% for char in characters %} + + + + {% endfor %}
- - - {{ char.character_name }}
- {{ char.corporation_name }}
- {{ char.alliance_name|default:"" }} -
+ + + {{ char.character_name }}
+ {{ char.corporation_name }}
+ {{ char.alliance_name|default:"" }} +