From a4ea48e14e25477eb41728b44d30a542b91ad13e Mon Sep 17 00:00:00 2001 From: Peter Pfeufer Date: Mon, 6 Jan 2025 16:43:59 +0100 Subject: [PATCH] [CHANGE] Group timer types by BG color BS class --- .../templates/timerboard/timertable.html | 59 +++++++++++++------ 1 file changed, 40 insertions(+), 19 deletions(-) diff --git a/allianceauth/timerboard/templates/timerboard/timertable.html b/allianceauth/timerboard/templates/timerboard/timertable.html index 7ac0099c..3ee2c202 100644 --- a/allianceauth/timerboard/templates/timerboard/timertable.html +++ b/allianceauth/timerboard/templates/timerboard/timertable.html @@ -30,13 +30,21 @@ + {% comment %} Objective: Hostile (BG: Danger) {% endcomment %} {% if timer.objective == "Hostile" %} -
{% translate "Hostile" %}
+
+ + {% comment %} Objective: Friendly (BG: Primare) {% endcomment %} {% elif timer.objective == "Friendly" %} -
{% translate "Friendly" %}
+
+ + {% comment %} Objective: Neutral (BG: Secondary) {% endcomment %} {% elif timer.objective == "Neutral" %} -
{% translate "Neutral" %}
+
{% endif %} + + {{ timer.get_objective_display }} +
@@ -44,32 +52,27 @@ + {% comment %} BG: Info {% endcomment %} {% if timer.structure == "POCO" %}
{% translate "POCO" %}
- {% elif timer.structure == "Orbital Skyhook" %} -
{% translate "Orbital Skyhook" %}
- {% elif timer.structure == "I-HUB" %} -
{% translate "I-HUB" %}
- {% elif timer.structure == "TCU" %} {% comment %} Pending Removal {% endcomment %} -
{% translate "TCU" %}
{% elif timer.structure == "POS[S]" %}
{% translate "POS [S]" %}
{% elif timer.structure == "POS[M]" %}
{% translate "POS [M]" %}
{% elif timer.structure == "POS[L]" %}
{% translate "POS [L]" %}
- {% elif timer.structure == "Citadel[M]" or timer.structure == "Astrahus" %} -
{% translate "Astrahus" %}
- {% elif timer.structure == "Citadel[L]" or timer.structure == "Fortizar" %} -
{% translate "Fortizar" %}
- {% elif timer.structure == "Citadel[XL]" or timer.structure == "Keepstar" %} -
{% translate "Keepstar" %}
+ + {% comment %} BG: Warning {% endcomment %} + {% elif timer.structure == "Station" %} +
{% translate "Station" %}
+ {% elif timer.structure == "Orbital Skyhook" %} +
{% translate "Orbital Skyhook" %}
+ {% elif timer.structure == "I-HUB" %} +
{% translate "I-HUB" %}
{% elif timer.structure == "Engineering Complex[M]" or timer.structure == "Raitaru" %}
{% translate "Raitaru" %}
{% elif timer.structure == "Engineering Complex[L]" or timer.structure == "Azbel" %}
{% translate "Azbel" %}
- {% elif timer.structure == "Engineering Complex[XL]" or timer.structure == "Sotiyo" %} -
{% translate "Sotiyo" %}
{% elif timer.structure == "Refinery[M]" or timer.structure == "Athanor" %}
{% translate "Athanor" %}
{% elif timer.structure == "Refinery[L]" or timer.structure == "Tatara" %} @@ -82,12 +85,30 @@
{% translate "Ansiblex Jump Gate" %}
{% elif timer.structure == "Mercenary Den" %}
{% translate "Mercenary Den" %}
- {% elif timer.structure == "Moon Mining Cycle" %} -
{% translate "Moon Mining Cycle" %}
{% elif timer.structure == "Metenox Moon Drill" %}
{% translate "Metenox Moon Drill" %}
+ + {% comment %} BG: Danger {% endcomment %} + {% elif timer.structure == "TCU" %} +
{% translate "TCU" %}
+ {% elif timer.structure == "Citadel[M]" or timer.structure == "Astrahus" %} +
{% translate "Astrahus" %}
+ {% elif timer.structure == "Citadel[L]" or timer.structure == "Fortizar" %} +
{% translate "Fortizar" %}
+ {% elif timer.structure == "Citadel[XL]" or timer.structure == "Keepstar" %} +
{% translate "Keepstar" %}
+ {% elif timer.structure == "Engineering Complex[XL]" or timer.structure == "Sotiyo" %} +
{% translate "Sotiyo" %}
+ + {% comment %} BG: Secondary {% endcomment %} + {% elif timer.structure == "TCU" %} {% comment %} Pending Removal {% endcomment %} +
{% translate "TCU" %}
{% elif timer.structure == "Other" %}
{% translate "Other" %}
+ + {% comment %} BG: Success {% endcomment %} + {% elif timer.structure == "Moon Mining Cycle" %} +
{% translate "Moon Mining Cycle" %}
{% endif %}