{# il2ks-template: templates/il2ks/players/detail_streaks.html v1 - copy this line along when you override #} {% load i18n il2ks il2ks_boards %}{% comment %} detail_streaks.html: the profile's ironman block (FR-WEB-23): current and best run of sorties without a death or a capture on each of the three tracks (all: every sortie; air: every sortie that is not an attack sortie; ground: attack sorties; maintainer 2026-10-05), with the run's air kills, ground kills and flight time, and a link to the player's best streaks page. All time it reads {% player_streaks player as streaks %} (rows: .track, current_* and best_*, the all track first); with a tour selected it shows that tour's longest streak of each track only ({% player_tour_streaks player tour as bests %}; a current streak is not per tour). Context: player, tour (None = all time). Shows nothing for a player without a survived sortie (in that scope). {% endcomment %}{% if tour %}{% player_tour_streaks player tour as bests %}{% else %}{% player_streaks player as streaks %}{% endif %}{% if streaks or bests %}

{% translate "Ironman" %}

{% translate "Best streaks" %} → · {% translate "Running streaks" %} →

{% translate "Consecutive sorties survived: no death, no capture. Sorties that never took off are skipped. The first streak counts every sortie, any loss ends it. The air and ground streaks count separately: losing a ground attacker does not end the air run, and the other way round." %}

{% col_th _("Sorties") numeric=True hint="streak_sorties" %}{% col_th _("Air kills") numeric=True hint="streak_kills" %}{% col_th _("Ground kills") numeric=True hint="streak_kills_ground_run" %}{% col_th _("Flight time") numeric=True hint="streak_time" %} {% if tour %}{% for best in bests %}{% endfor %} {% else %}{% for streak in streaks %}{% endfor %}{% endif %}
{% translate "Streak" %}{% translate "Since" %}
{% if best.track == "ground" %}{% translate "Best ground streak" %}{% elif best.track == "air" %}{% translate "Best air streak" %}{% else %}{% translate "Best streak" %}{% endif %}{{ best.sorties|num }}{{ best.kills_air|num }}{{ best.kills_ground|num }}{{ best.flight_time_s|duration }}{{ best.since|local_date }}
{% if streak.track == "ground" %}{% translate "Current ground streak" %}{% elif streak.track == "air" %}{% translate "Current air streak" %}{% else %}{% translate "Current streak" %}{% endif %}{{ streak.current_sorties|num }}{{ streak.current_kills_air|num }}{{ streak.current_kills_ground|num }}{{ streak.current_flight_time_s|duration }}{% if streak.current_since %}{{ streak.current_since|local_date }}{% else %}–{% endif %}
{% if streak.track == "ground" %}{% translate "Best ground streak" %}{% elif streak.track == "air" %}{% translate "Best air streak" %}{% else %}{% translate "Best streak" %}{% endif %}{{ streak.best_sorties|num }}{{ streak.best_kills_air|num }}{{ streak.best_kills_ground|num }}{{ streak.best_flight_time_s|duration }}{% if streak.best_since %}{{ streak.best_since|local_date }}{% else %}–{% endif %}
{% endif %}