From a8855e86ed4f01d4fe7f01e99327913d7ae476c8 Mon Sep 17 00:00:00 2001 From: colcrunch Date: Tue, 12 Mar 2019 10:06:53 +0000 Subject: [PATCH] Change `Type [SIZE]` notation for Citadels/EC/Refineries to structure names to reduce ambiguity. Also, Added "Brand names" for the Beacon, Jammer, and Gate. --- allianceauth/timerboard/form.py | 22 +- .../timerboard/templates/timerboard/view.html | 340 +++++++++--------- 2 files changed, 181 insertions(+), 181 deletions(-) diff --git a/allianceauth/timerboard/form.py b/allianceauth/timerboard/form.py index 8a485436..3969b9b4 100755 --- a/allianceauth/timerboard/form.py +++ b/allianceauth/timerboard/form.py @@ -38,17 +38,17 @@ class TimerForm(forms.ModelForm): ('POS[S]', 'POS[S]'), ('POS[M]', 'POS[M]'), ('POS[L]', 'POS[L]'), - ('Citadel[M]', 'Citadel[M]'), - ('Citadel[L]', 'Citadel[L]'), - ('Citadel[XL]', 'Citadel[XL]'), - ('Engineering Complex[M]', 'Engineering Complex[M]'), - ('Engineering Complex[L]', 'Engineering Complex[L]'), - ('Engineering Complex[XL]', 'Engineering Complex[XL]'), - ('Refinery[M]', 'Refinery[M]'), - ('Refinery[L]', 'Refinery[L]'), - ('Cyno Beacon','Cyno Beacon'), - ('Cyno Jammer','Cyno Jammer'), - ('Jump Gate','Jump Gate'), + ('Astrahus', 'Astrahus'), + ('Fortizar', 'Fortizar'), + ('Keepstar', 'Keepstar'), + ('Raitaru', 'Raitaru'), + ('Azbel', 'Azbel'), + ('Sotiyo', 'Sotiyo'), + ('Athanor', 'Athanor'), + ('Tatara', 'Tatara'), + ('Pharolux Cyno Beacon', 'Pharolux Cyno Beacon'), + ('Tenebrex Cyno Jammer', 'Tenebrex Cyno Jammer'), + ('Ansiblex Jump Gate', 'Ansiblex Jump Gate'), ('Moon Mining Cycle', 'Moon Mining Cycle'), (_('Other'), _('Other'))] objective_choices = [('Friendly', _('Friendly')), diff --git a/allianceauth/timerboard/templates/timerboard/view.html b/allianceauth/timerboard/templates/timerboard/view.html index c9b2cb63..198af430 100644 --- a/allianceauth/timerboard/templates/timerboard/view.html +++ b/allianceauth/timerboard/templates/timerboard/view.html @@ -37,128 +37,128 @@ {% endif %} {% for timer in corp_timers %} - {% ifequal timer.important True %} + {% if timer.important == True %} {% else %} - {% endifequal %} + {% endif %} {{ timer.details }} - {% ifequal timer.objective "Hostile" %} + {% if timer.objective == "Hostile" %}
{% trans "Hostile" %}
- {% endifequal %} - {% ifequal timer.objective "Friendly" %} + {% endif %} + {% if timer.objective == "Friendly" %}
{% trans "Friendly" %}
- {% endifequal %} - {% ifequal timer.objective "Neutral" %} + {% endif %} + {% if timer.objective == "Neutral" %}
{% trans "Neutral" %}
- {% endifequal %} + {% endif %} {{ timer.system }} {{ timer.planet_moon }} - {% ifequal timer.structure "POCO" %} + {% if timer.structure == "POCO" %}
POCO
- {% endifequal %} - {% ifequal timer.structure "I-HUB" %} + {% endif %} + {% if timer.structure == "I-HUB" %}
I-HUB
- {% endifequal %} - {% ifequal timer.structure "TCU" %} + {% endif %} + {% if timer.structure == "TCU" %}
TCU
- {% endifequal %} - {% ifequal timer.structure "POS[S]" %} + {% endif %} + {% if timer.structure == "POS[S]" %}
POS [S]
- {% endifequal %} - {% ifequal timer.structure "POS[M]" %} + {% endif %} + {% if timer.structure == "POS[M]" %}
POS [M]
- {% endifequal %} - {% ifequal timer.structure "POS[L]" %} + {% endif %} + {% if timer.structure == "POS[L]" %}
POS [L]
- {% endifequal %} - {% ifequal timer.structure "Citadel[M]" %} + {% endif %} + {% if timer.structure == "Citadel[M]" or timer.structure == "Astrahus" %}
- Citadel [M] + Astrahus
- {% endifequal %} - {% ifequal timer.structure "Citadel[L]" %} + {% endif %} + {% if timer.structure == "Citadel[L]" or timer.structure == "Fortizar" %}
- Citadel [L] + Fortizar
- {% endifequal %} - {% ifequal timer.structure "Citadel[XL]" %} + {% endif %} + {% if timer.structure == "Citadel[XL]" or timer.structure == "Keepstar" %}
- Citadel [XL] + Keepstar
- {% endifequal %} - {% ifequal timer.structure "Engineering Complex[M]" %} + {% endif %} + {% if timer.structure == "Engineering Complex[M]" or timer.structure == "Raitaru" %}
- Engineering Complex [M] + Raitaru
- {% endifequal %} - {% ifequal timer.structure "Engineering Complex[L]" %} + {% endif %} + {% if timer.structure == "Engineering Complex[L]" or timer.structure == "Azbel" %}
- Engineering Complex [L] + Azbel
- {% endifequal %} - {% ifequal timer.structure "Engineering Complex[XL]" %} + {% endif %} + {% if timer.structure == "Engineering Complex[XL]" or timer.structure == "Sotiyo" %}
- Engineering Complex [XL] + Sotiyo
- {% endifequal %} - {% ifequal timer.structure "Refinery[M]" %} + {% endif %} + {% if timer.structure == "Refinery[M]" or timer.structure == "Athanor" %}
- Refinery [M] + Athanor
- {% endifequal %} - {% ifequal timer.structure "Refinery[L]" %} + {% endif %} + {% if timer.structure == "Refinery[L]" or timer.structure == "Tatara"%}
- Refinery [L] + Tatara
- {% endifequal %} - {% ifequal timer.structure "Cyno Beacon" %} + {% endif %} + {% if timer.structure == "Cyno Beacon" or timer.structure == "Pharolux Cyno Beacon" %}
Cyno Beacon
- {% endifequal %} - {% ifequal timer.structure "Cyno Jammer" %} + {% endif %} + {% if timer.structure == "Cyno Jammer" or timer.structure == "Tenebrex Cyno Jammer" %}
- Cyno Jammer + Tenebrex Cyno Jammer
- {% endifequal %} - {% ifequal timer.structure "Jump Gate" %} + {% endif %} + {% if timer.structure == "Jump Gate" or timer.structure == "Ansiblex Jump Gate" %}
- Jump Gate + Ansiblex Jump Gate
- {% endifequal %} - {% ifequal timer.structure "Moon Mining Cycle" %} + {% endif %} + {% if timer.structure == "Moon Mining Cycle" %}
Moon Mining Cycle
- {% endifequal %} - {% ifequal timer.structure "Other" %} + {% endif %} + {% if timer.structure == "Other" %}
Other
- {% endifequal %} + {% endif %} {{ timer.eve_time | date:"Y-m-d H:i" }} @@ -196,128 +196,128 @@ {% endif %} {% for timer in future_timers %} - {% ifequal timer.important True %} + {% if timer.important == True %} {% else %} - {% endifequal %} + {% endif %} {{ timer.details }} - {% ifequal timer.objective "Hostile" %} + {% if timer.objective == "Hostile" %}
{% trans "Hostile" %}
- {% endifequal %} - {% ifequal timer.objective "Friendly" %} + {% endif %} + {% if timer.objective == "Friendly" %}
{% trans "Friendly" %}
- {% endifequal %} - {% ifequal timer.objective "Neutral" %} + {% endif %} + {% if timer.objective == "Neutral" %}
{% trans "Neutral" %}
- {% endifequal %} + {% endif %} {{ timer.system }} {{ timer.planet_moon }} - {% ifequal timer.structure "POCO" %} + {% if timer.structure == "POCO" %}
POCO
- {% endifequal %} - {% ifequal timer.structure "I-HUB" %} + {% endif %} + {% if timer.structure == "I-HUB" %}
I-HUB
- {% endifequal %} - {% ifequal timer.structure "TCU" %} + {% endif %} + {% if timer.structure == "TCU" %}
TCU
- {% endifequal %} - {% ifequal timer.structure "POS[S]" %} + {% endif %} + {% if timer.structure == "POS[S]" %}
POS [S]
- {% endifequal %} - {% ifequal timer.structure "POS[M]" %} + {% endif %} + {% if timer.structure == "POS[M]" %}
POS [M]
- {% endifequal %} - {% ifequal timer.structure "POS[L]" %} + {% endif %} + {% if timer.structure == "POS[L]" %}
POS [L]
- {% endifequal %} - {% ifequal timer.structure "Citadel[M]" %} + {% endif %} + {% if timer.structure == "Citadel[M]" or timer.structure == "Astrahus" %}
- Citadel [M] + Astrahus
- {% endifequal %} - {% ifequal timer.structure "Citadel[L]" %} + {% endif %} + {% if timer.structure == "Citadel[L]" or timer.structure == "Fortizar" %}
- Citadel [L] + Fortizar
- {% endifequal %} - {% ifequal timer.structure "Citadel[XL]" %} + {% endif %} + {% if timer.structure == "Citadel[XL]" or timer.structure == "Keepstar" %}
- Citadel [XL] + Keepstar
- {% endifequal %} - {% ifequal timer.structure "Engineering Complex[M]" %} + {% endif %} + {% if timer.structure == "Engineering Complex[M]" or timer.structure == "Raitaru" %}
- Engineering Complex [M] + Raitaru
- {% endifequal %} - {% ifequal timer.structure "Engineering Complex[L]" %} + {% endif %} + {% if timer.structure == "Engineering Complex[L]" or timer.structure == "Azbel" %}
- Engineering Complex [L] + Azbel
- {% endifequal %} - {% ifequal timer.structure "Engineering Complex[XL]" %} + {% endif %} + {% if timer.structure == "Engineering Complex[XL]" or timer.structure == "Sotiyo" %}
- Engineering Complex [XL] + Sotiyo
- {% endifequal %} - {% ifequal timer.structure "Refinery[M]" %} + {% endif %} + {% if timer.structure == "Refinery[M]" or timer.structure == "Athanor" %}
- Refinery [M] + Athanor
- {% endifequal %} - {% ifequal timer.structure "Refinery[L]" %} + {% endif %} + {% if timer.structure == "Refinery[L]" or timer.structure == "Tatara" %}
- Refinery [L] + Tatara
- {% endifequal %} - {% ifequal timer.structure "Cyno Beacon" %} + {% endif %} + {% if timer.structure == "Cyno Beacon" or timer.structure == "Pharolux Cyno Beacon" %}
- Cyno Beacon + Pharolux Cyno Beacon
- {% endifequal %} - {% ifequal timer.structure "Cyno Jammer" %} + {% endif %} + {% if timer.structure == "Cyno Jammer" or timer.structure == "Tenebrex Cyno Jammer" %}
- Cyno Jammer + Tenebrex Cyno Jammer
- {% endifequal %} - {% ifequal timer.structure "Jump Gate" %} + {% endif %} + {% if timer.structure == "Jump Gate" or timer.structure == "Ansiblex Jump Gate" %}
- Jump Gate + Ansiblex Jump Gate
- {% endifequal %} - {% ifequal timer.structure "Moon Mining Cycle" %} + {% endif %} + {% if timer.structure == "Moon Mining Cycle" %}
Moon Mining Cycle
- {% endifequal %} - {% ifequal timer.structure "Other" %} + {% endif %} + {% if timer.structure == "Other" %}
Other
- {% endifequal %} + {% endif %} {{ timer.eve_time | date:"Y-m-d H:i" }} @@ -357,128 +357,128 @@ {% endif %} {% for timer in past_timers %} - {% ifequal timer.important True %} + {% if timer.important == True %} {% else %} - {% endifequal %} + {% endif %} {{ timer.details }} - {% ifequal timer.objective "Hostile" %} + {% if timer.objective == "Hostile" %}
{% trans "Hostile" %}
- {% endifequal %} - {% ifequal timer.objective "Friendly" %} + {% endif %} + {% if timer.objective == "Friendly" %}
{% trans "Friendly" %}
- {% endifequal %} - {% ifequal timer.objective "Neutral" %} + {% endif %} + {% if timer.objective == "Neutral" %}
{% trans "Neutral" %}
- {% endifequal %} + {% endif %} {{ timer.system }} {{ timer.planet_moon }} - {% ifequal timer.structure "POCO" %} + {% if timer.structure == "POCO" %}
POCO
- {% endifequal %} - {% ifequal timer.structure "I-HUB" %} + {% endif %} + {% if timer.structure == "I-HUB" %}
I-HUB
- {% endifequal %} - {% ifequal timer.structure "TCU" %} + {% endif %} + {% if timer.structure == "TCU" %}
TCU
- {% endifequal %} - {% ifequal timer.structure "POS[S]" %} + {% endif %} + {% if timer.structure == "POS[S]" %}
POS [S]
- {% endifequal %} - {% ifequal timer.structure "POS[M]" %} + {% endif %} + {% if timer.structure == "POS[M]" %}
POS [M]
- {% endifequal %} - {% ifequal timer.structure "POS[L]" %} + {% endif %} + {% if timer.structure == "POS[L]" %}
POS [L]
- {% endifequal %} - {% ifequal timer.structure "Citadel[M]" %} + {% endif %} + {% if timer.structure == "Citadel[M]" or timer.structure == "Astrahus" %}
- Citadel [M] + Astrahus
- {% endifequal %} - {% ifequal timer.structure "Citadel[L]" %} + {% endif %} + {% if timer.structure == "Citadel[L]" or timer.structure == "Fortizar" %}
- Citadel [L] + Fortizar
- {% endifequal %} - {% ifequal timer.structure "Citadel[XL]" %} + {% endif %} + {% if timer.structure == "Citadel[XL]" or timer.structure == "Keepstar" %}
- Citadel [XL] + Keepstar
- {% endifequal %} - {% ifequal timer.structure "Engineering Complex[M]" %} + {% endif %} + {% if timer.structure == "Engineering Complex[M]" or timer.structure == "Raitaru" %}
- Engineering Complex [M] + Raitaru
- {% endifequal %} - {% ifequal timer.structure "Engineering Complex[L]" %} + {% endif %} + {% if timer.structure == "Engineering Complex[L]" or timer.structure == "Azbel" %}
- Engineering Complex [L] + Azbel
- {% endifequal %} - {% ifequal timer.structure "Engineering Complex[XL]" %} + {% endif %} + {% if timer.structure == "Engineering Complex[XL]" or timer.structure == "Sotiyo" %}
- Engineering Complex [XL] + Sotiyo
- {% endifequal %} - {% ifequal timer.structure "Refinery[M]" %} + {% endif %} + {% if timer.structure == "Refinery[M]" or timer.structure == "Athanor" %}
- Refinery [M] + Athanor
- {% endifequal %} - {% ifequal timer.structure "Refinery[L]" %} + {% endif %} + {% if timer.structure == "Refinery[L]" or timer.structure == "Tatara" %}
- Refinery [L] + Tatara
- {% endifequal %} - {% ifequal timer.structure "Cyno Beacon" %} + {% endif %} + {% if timer.structure == "Cyno Beacon" or timer.structure == "Pharolux Cyno Beacon" %}
- Cyno Beacon + Pharolux Cyno Beacon
- {% endifequal %} - {% ifequal timer.structure "Cyno Jammer" %} + {% endif %} + {% if timer.structure == "Cyno Jammer" or timer.structure == "Tenebrex Cyno Jammer" %}
- Cyno Jammer + Tenebrex Cyno Jammer
- {% endifequal %} - {% ifequal timer.structure "Jump Gate" %} + {% endif %} + {% if timer.structure == "Jump Gate" or timer.structure == "Ansiblex Jump Gate" %}
- Jump Gate + Ansiblex Jump Gate
- {% endifequal %} - {% ifequal timer.structure "Moon Mining Cycle" %} + {% endif %} + {% if timer.structure == "Moon Mining Cycle" %}
Moon Mining Cycle
- {% endifequal %} - {% ifequal timer.structure "Other" %} + {% endif %} + {% if timer.structure == "Other" %}
Other
- {% endifequal %} + {% endif %} {{ timer.eve_time | date:"Y-m-d H:i" }}