{# il2ks-template: templates/il2ks/players/streaks.html v1 - copy this line along when you override #} {% extends "il2ks/base.html" %}{% load i18n static il2ks %}{% comment %} A player's best ironman streaks (FR-WEB-23). View: il2ks.web.views.boards.player_streaks. Context: player, tours, tour (None = all time), streaks (PlayerBestStreak rows, all track first: .track is all, air or ground, .kind is sorties, air_kills / ground_kills / kills (the track's kills; both on the all track) or flight_time, .sorties, .kills_air, .kills_ground, .flight_time_s, .since, .until; a kind may be missing), crumbs, page_title. With a tour selected a streak runs inside that tour's sorties only. Blocks: head, content. {% endcomment %} {% block head %}{% endblock %} {% block content %} {% breadcrumbs crumbs %}

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

{% tour_select tours tour %}

{% translate "The pilot's best runs of consecutive sorties survived (no death, no capture; sorties that never took off are skipped), by sorties, by kills and by flight time, for all sorties together, and for air sorties and attack sorties separately (a death in one kind of sortie does not end the other kind's run, any death ends the first streak)." %}{% 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 %}
{% 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 row in streaks %} {% empty %}{% empty_row 8 _("No streak yet: no sortie survived.") %}{% endfor %}
{% translate "Track" %} {% translate "Best by" %}{% translate "Since" %} {% translate "Until" %}
{% if row.track == "ground" %}{% translate "Ground" %}{% elif row.track == "air" %}{% translate "Air" %}{% else %}{% translate "All sorties" %}{% endif %} {% if row.kind == "sorties" %}{% translate "Sorties survived" %}{% elif row.kind == "air_kills" %}{% translate "Air kills" %}{% elif row.kind == "ground_kills" %}{% translate "Ground kills" %}{% elif row.kind == "kills" %}{% translate "Air and ground kills" %}{% else %}{% translate "Flight time" %}{% endif %} {{ row.sorties|num }} {{ row.kills_air|num }} {{ row.kills_ground|num }} {{ row.flight_time_s|duration }} {{ row.since|local_date }} {{ row.until|local_date }}

{% translate "All streaks" %} →

← {% translate "Back to the profile" %}

{% endblock %}