{# il2ks-template: templates/il2ks/players/streak_runs.html v1 - copy this line along when you override #} {% extends "il2ks/base.html" %}{% load i18n static il2ks %}{% comment %} Every ironman streak of a player (FR-WEB-25, OQ-82), newest first. View: il2ks.web.views.boards.player_streak_runs. Context: player, tours, tour (None = all time), track (all, air or ground), track_options ((label, url, current) rows), tour_ended (the selected tour is not the current one: an open run then shows "Tour ended"), page_obj (PlayerStreakRun rows: .sorties, .kills_air, .flight_time_s, .since, .until, .ended_by = death / captured / open, .ended_sortie with .mission, None while open), min_run, crumbs, page_title. A hidden mission's sortie is not linked (FR-ADM-3). With a tour selected a run stays inside that tour. Blocks: head, content. {% endcomment %} {% block head %}{% endblock %} {% block content %} {% breadcrumbs crumbs %}

{% blocktranslate with name=player.current_name %}All streaks of {{ name }}{% endblocktranslate %}

{% tour_select tours tour %}

{% blocktranslate with count=min_run %}Every run of {{ count }} or more consecutive sorties survived (no death, no capture; sorties that never took off are skipped), newest first, and how each one ended.{% endblocktranslate %}{% if tour %} {% translate "Inside the selected tour only: a streak does not carry over from an earlier tour." %}{% else %} {% translate "A streak never carries over from one tour to the next; all time shows the best of the tours." %}{% endif %}

{% if absence %}{% blocktranslate asvar absent_message with name=player.current_name tour=absence.tour|tour_title %}{{ name }} did not fly in {{ tour }}.{% endblocktranslate %}{% tour_absent absence absent_message %}{% endif %}

{% for label, href, current in track_options %} {{ label }}{% endfor %}

{% results_region %}
{% 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" %} {% for run in page_obj %} {% empty %}{% empty_row 7 _("No streak yet: no run of consecutive sorties survived.") %}{% endfor %}
{% translate "Since" %} {% translate "Until" %}{% translate "How it ended" %}
{{ run.since|local_date }} {{ run.until|local_date }} {{ run.sorties|num }} {{ run.kills_air|num }} {{ run.kills_ground|num }} {{ run.flight_time_s|duration }} {% if run.ended_by == "open" %}{% if tour_ended %}{% translate "Tour ended" %}{% else %}{% translate "Still going" %}{% endif %}{% else %}{% if run.ended_sortie and not run.ended_sortie.mission.is_hidden %}{% endif %}{% if run.ended_by == "captured" %}{% translate "Captured" %}{% else %}{% translate "Died" %}{% endif %}{% if run.ended_sortie and not run.ended_sortie.mission.is_hidden %}{% endif %}{% endif %}
{% pagination page_obj %} {% endresults_region %}

← {% translate "Best streaks" %}

{% endblock %}