{# il2ks-template: templates/il2ks/missions/list.html v1 - copy this line along when you override #} {% extends "il2ks/base.html" %}{% load i18n static il2ks %}{% comment %} Mission list (FR-WEB-1). Context: page_obj (Page of Mission), quiet_tour (a tour is picked and nothing is listed: the empty-tour flavor line replaces the message), missions (the page's rows), sort (whitelisted ?sort=), tours / tour (the selector, TD-26: no ?tour = the current tour, ?tour=all = all time), period_options, winner_options, empty_options ((value, label) pairs for the filters), optional_columns (the columns a visitor can add), columns (the chosen ones, ?cols=), colspan. Blocks: head (page stylesheet), content. {% endcomment %} {% block head %}{% endblock %} {% block content %}

{% if tour %}{% blocktranslate with tour=tour|tour_title %}Missions in {{ tour }}{% endblocktranslate %}{% else %}{% translate "Missions" %}{% endif %}

{% results_region %} {% filter_bar %} {% filter_text "q" _("Mission") placeholder=_("Name contains…") live=True %} {% tour_filter tours tour %} {% filter_select "period" _("Period") period_options all_label=_("All time") %} {% filter_select "winner" _("Winner") winner_options all_label=_("Any") %} {% filter_select "empty" _("Empty missions") empty_options all_label=_("Hidden") %} {% columns_picker optional_columns %} {% endfilter_bar %}
{% sort_th "date" _("Date") first="desc" %} {% sort_th "name" _("Mission") %} {% sort_th "duration" _("Duration") numeric=True %} {% sort_th "players" _("Players") numeric=True %} {% sort_th "sorties" _("Sorties") numeric=True %} {% sort_th "air_kills" _("Air kills") numeric=True %} {% sort_th "ground_kills" _("Ground kills") numeric=True %} {% for column in columns %}{% sort_th column.key column.label numeric=True hint=column.description %}{% endfor %} {% if quiet_tour %}{% flavor "tour_empty" tour.pk as quiet_line %}{% include "il2ks/missions/_rows.html" with empty_message=quiet_line columns=columns colspan=colspan %}{% else %}{% include "il2ks/missions/_rows.html" with columns=columns colspan=colspan %}{% endif %}
{% coalition_icon "redfor" %}/{% coalition_icon "blufor" %}{% translate "Winner" %}
{% pagination page_obj %} {% endresults_region %} {% endblock %}