{# il2ks-template: templates/il2ks/sorties/list.html v1 - copy this line along when you override #} {% extends "il2ks/base.html" %}{% load i18n static il2ks %}{% comment %} A player's sortie list (FR-WEB-5), newest first. Filters, sorting and paging work with and without htmx (results_region). Context: player, tours / tour (the selector, TD-26: no ?tour = the current tour, ?tour=all = all time), page_obj (PlayerSortie rows, with mission and aircraft), sort (the resolved ?sort= value), aircraft_options / outcome_options / role_options / combat_role_options ((value, label) pairs), crumbs, page_title, optional_columns (the columns a visitor can add), columns (the chosen ones, ?cols=; sortable headers). Blocks: content only; the row is `sorties/parts/list_row.html`. {% endcomment %} {% block head %}{% endblock %} {% block content %} {% breadcrumbs crumbs %}

{% if tour %}{% blocktranslate with name=player.current_name tour=tour|tour_title %}Sorties of {{ name }} in {{ tour }}{% endblocktranslate %}{% else %}{% blocktranslate with name=player.current_name %}Sorties of {{ name }}{% endblocktranslate %}{% endif %}

{% translate "All streaks" %} →

{% results_region %} {% filter_bar %} {% tour_filter tours tour %} {% filter_select "aircraft" _("Aircraft") aircraft_options all_label=_("All aircraft") %} {% filter_select "outcome" _("Outcome") outcome_options all_label=_("Any outcome") %} {% filter_select "role" _("Seat") role_options all_label=_("Pilot or gunner") %} {% filter_select "combat_role" _("Combat role") combat_role_options all_label=_("Any role") %} {% columns_picker optional_columns %} {% endfilter_bar %} {% 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 %}
{% sort_th "date" _("Date") first="desc" %} {% sort_th "aircraft" _("Aircraft") %} {% col_th _("Role") hint="role" %} {% sort_th "outcome" _("Outcome") %} {% col_th _("Pilot fate") %} {% sort_th "damage_taken" _("Damage taken") numeric=True hint="damage_taken" %} {% sort_th "kills_air" _("Air kills") numeric=True %} {% sort_th "kills_ground" _("Ground kills") numeric=True %} {% sort_th "assists" _("Assists") numeric=True hint="assists" %} {% sort_th "flight_time" _("Flight time") numeric=True %} {% for column in columns %}{% sort_th column.key column.label numeric=column.numeric hint=column.description %}{% endfor %} {% for sortie in page_obj %}{% include "il2ks/sorties/parts/list_row.html" %} {% empty %}{% if quiet_tour %}{% flavor "tour_empty" tour.pk as quiet_line %}{% empty_row colspan quiet_line %}{% else %}{% empty_row colspan _("No sorties match these filters.") %}{% endif %} {% endfor %}
{% translate "Details" %}
{% pagination page_obj %} {% endresults_region %} {% endblock %}