{# il2ks-template: templates/il2ks/missions/detail.html v1 - copy this line along when you override #} {% extends "il2ks/base.html" %}{% load i18n static il2ks %}{% comment %} Mission page (FR-WEB-2). Context: mission (Mission), groups (SideSorties: .side 'redfor'/'blufor'/None, .rows = this page's PlayerSortie rows with .player and .aircraft; .page and .page_param for the pagination; 20 per side, OQ-96), kills (a Page of Kill rows with both sorties' player and aircraft; kills_param its query parameter), sortie_count, sort (the resolved ?sort=, orders all the sortie tables, not the kills), optional_columns / columns (the optional sortie columns and the chosen ones, ?cols=), colspan. Crumbs: breadcrumbs. Blocks: head (page stylesheet), content. Hidden players are anonymised through missions/_player.html (FR-ADM-3). {% endcomment %} {% block head %}{% endblock %} {% block content %} {% breadcrumbs crumbs %}
| {% translate "Details" %} | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ s.spawned_at|clock_since:mission.started_at }} | {% include "il2ks/missions/_player.html" with player=s.player name=s.name_at_time tour_q=mission.tour_id|tour_qs %}{% if s.role == "gunner" %}{% badge _("Gunner") "purple" %}{% endif %} | {% if s.role != "gunner" %}{% aircraft_icon s.aircraft %}{% endif %}{{ s.aircraft|object_name }} | {% if s.combat_role %}{% role_badge s.combat_role %}{% else %}—{% endif %} | {% outcome_badge s.outcome %} | {% pilot_fate_badge s %} | {{ s.kills_air|num }} | {{ s.kills_ground|num }} | {{ s.assists|num }} | {{ s.flight_time_s|duration }} | {% for column in columns %}{{ column|cell:s }} | {% endfor %}{% if not s.player.is_hidden %}→{% endif %} |
{% translate "Player-versus-player kills and assists in this mission, in order. Kills against AI and ground targets are counted in the sortie rows above." %}
| {% translate "Time" %} | {% translate "Killer" %} | {% translate "Victim" %} | {% col_th _("Credit") hint="credit" %}|
|---|---|---|---|
| {{ k.time|clock_since:mission.started_at }} | {% coalition_icon k.killer_sortie.country %}{% include "il2ks/missions/_player.html" with player=k.killer_sortie.player name=k.killer_sortie.name_at_time tour_q=mission.tour_id|tour_qs %} {{ k.killer_sortie.aircraft|object_name }} | {% coalition_icon k.victim_sortie.country %}{% include "il2ks/missions/_player.html" with player=k.victim_sortie.player name=k.victim_sortie.name_at_time tour_q=mission.tour_id|tour_qs %} {{ k.victim_sortie.aircraft|object_name }} | {% if k.is_friendly %}{% badge _("Friendly fire") "red" %} {% elif k.credit == "assist" %}{% badge _("Assist") "blue" %} {% elif k.credit == "shared" %}{% badge _("Shared kill") "teal" %} {% else %}{% badge _("Kill") "green" %}{% endif %} |