From 898b91a5569491277c54edb1e183c08c998b2df2 Mon Sep 17 00:00:00 2001 From: Fedor Glazov Date: Sun, 12 Feb 2023 10:28:33 +0100 Subject: [PATCH 1/2] Fix coalition display bug in itaf layout. --- changelog.txt | 6 +++++- src/mod_rating_by_type/templates/main_itaf.html | 8 ++++---- src/mod_rating_by_type/templates/tour_itaf.html | 8 ++++---- 3 files changed, 13 insertions(+), 9 deletions(-) diff --git a/changelog.txt b/changelog.txt index 49f6493..3f9dbf0 100644 --- a/changelog.txt +++ b/changelog.txt @@ -149,4 +149,8 @@ Version 2.5.0 - Add new module "Ironman Squads", which aggregates information about the VLifes in a squad. (WIP: Some translations missing) - Add new module "Last mission ironman", which aggregates information about the VLifes during the last mission. (WIP: Some translations missing) - Add new modulke "itaf_layout", an alternative 3 column layout for the front page - requires the use of some other modules. -- Add new config parameter "ironman_style", can be set to 'classic' or 'both' - classic is the behavior for Ironman stats as before (best/current VLife depending on the tour), both lets you see both behaviors for all tours. \ No newline at end of file +- Add new config parameter "ironman_style", can be set to 'classic' or 'both' - classic is the behavior for Ironman stats as before (best/current VLife depending on the tour), both lets you see both behaviors for all tours. + +Version 2.5.1 + +- Fix bug where last mission players on itaf layout was not rendering coalition correclty (always both coalitions instead of the one the player played as). \ No newline at end of file diff --git a/src/mod_rating_by_type/templates/main_itaf.html b/src/mod_rating_by_type/templates/main_itaf.html index 702ded0..a6cd6ab 100644 --- a/src/mod_rating_by_type/templates/main_itaf.html +++ b/src/mod_rating_by_type/templates/main_itaf.html @@ -29,7 +29,7 @@
{{ forloop.counter }}
{{ vlife.profile.nickname }}
- {% include 'inline/table_coal_pref_icon.html' with coal_pref=player.coal_pref %} + {% include 'inline/table_coal_pref_icon.html' with coal_pref=vlife.coal_pref %}
{{ vlife.score }}
@@ -98,7 +98,7 @@
{{ forloop.counter }}
{{ vlife.profile.nickname }}
- {% include 'inline/table_coal_pref_icon.html' with coal_pref=player.coal_pref %} + {% include 'inline/table_coal_pref_icon.html' with coal_pref=vlife.coal_pref %}
{{ vlife.score }}
@@ -171,7 +171,7 @@
{{ forloop.counter }}
{{ vlife.profile.nickname }}
- {% include 'inline/table_coal_pref_icon.html' with coal_pref=player.coal_pref %} + {% include 'inline/table_coal_pref_icon.html' with coal_pref=vlife.coal_pref %}
{{ vlife.score }}
@@ -243,7 +243,7 @@
{{ forloop.counter }}
{{ vlife.profile.nickname }}
- {% include 'inline/table_coal_pref_icon.html' with coal_pref=player.coal_pref %} + {% include 'inline/table_coal_pref_icon.html' with coal_pref=vlife.coal_pref %}
{{ vlife.score }}
diff --git a/src/mod_rating_by_type/templates/tour_itaf.html b/src/mod_rating_by_type/templates/tour_itaf.html index 5309e3a..3ee1b99 100644 --- a/src/mod_rating_by_type/templates/tour_itaf.html +++ b/src/mod_rating_by_type/templates/tour_itaf.html @@ -33,7 +33,7 @@
{{ forloop.counter }}
{{ vlife.profile.nickname }}
- {% include 'inline/table_coal_pref_icon.html' with coal_pref=player.coal_pref %} + {% include 'inline/table_coal_pref_icon.html' with coal_pref=vlife.coal_pref %}
{{ vlife.score }}
@@ -102,7 +102,7 @@
{{ forloop.counter }}
{{ vlife.profile.nickname }}
- {% include 'inline/table_coal_pref_icon.html' with coal_pref=player.coal_pref %} + {% include 'inline/table_coal_pref_icon.html' with coal_pref=vlife.coal_pref %}
{{ vlife.score }}
@@ -175,7 +175,7 @@
{{ forloop.counter }}
{{ vlife.profile.nickname }}
- {% include 'inline/table_coal_pref_icon.html' with coal_pref=player.coal_pref %} + {% include 'inline/table_coal_pref_icon.html' with coal_pref=vlife.coal_pref %}
{{ vlife.score }}
@@ -247,7 +247,7 @@
{{ forloop.counter }}
{{ vlife.profile.nickname }}
- {% include 'inline/table_coal_pref_icon.html' with coal_pref=player.coal_pref %} + {% include 'inline/table_coal_pref_icon.html' with coal_pref=vlife.coal_pref %}
{{ vlife.score }}
From 5cea11ce23240d66903e5b427809c2f49024d8e6 Mon Sep 17 00:00:00 2001 From: Fedor Glazov Date: Wed, 29 Mar 2023 22:55:30 +0200 Subject: [PATCH 2/2] Properly show bomber ironman in itaf layout. --- changelog.txt | 6 +++++- src/mod_rating_by_type/templates/main_itaf.html | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/changelog.txt b/changelog.txt index 3f9dbf0..18644fd 100644 --- a/changelog.txt +++ b/changelog.txt @@ -153,4 +153,8 @@ Version 2.5.0 Version 2.5.1 -- Fix bug where last mission players on itaf layout was not rendering coalition correclty (always both coalitions instead of the one the player played as). \ No newline at end of file +- Fix bug where last mission players on itaf layout was not rendering coalition correclty (always both coalitions instead of the one the player played as). + +Version 2.5.2 + +- Fix bug with itaf layout (thanks ITAF_LG965) \ No newline at end of file diff --git a/src/mod_rating_by_type/templates/main_itaf.html b/src/mod_rating_by_type/templates/main_itaf.html index a6cd6ab..cc87eba 100644 --- a/src/mod_rating_by_type/templates/main_itaf.html +++ b/src/mod_rating_by_type/templates/main_itaf.html @@ -275,7 +275,7 @@ -
+
{% trans 'Best bomber ironmen' context 'tour_top' %}
@@ -286,7 +286,7 @@
{% trans 'score' context 'tour_top' %}
- {% for player in top_ironman_light %} + {% for player in top_ironman_heavy %}
{{ forloop.counter }}
{{ player.nickname }}