{# il2ks-template: templates/il2ks/sorties/parts/header.html v1 - copy this line along when you override #}
{% load i18n il2ks il2ks_sorties %}{% comment %}
Report header: who flew what, for which side, in which mission, and the result at a glance (the part that fits a
Discord screenshot). Context: sortie (player, mission, aircraft), detail, sortie_marks (badges after the air and ground kills). A running mission's notice sits between the header and the tiles.
{% endcomment %} {% if sortie.role == "gunner" %}{{ sortie.aircraft|object_name }}{% else %}{{ sortie.aircraft|object_name }}{% endif %}{% if sortie.payload_name %} · {{ sortie.payload_name }}{% endif %}
{% coalition_badge sortie.country %}
{% if sortie.role == "gunner" %}{% badge _("Gunner") "purple" %}{% else %}{% badge _("Pilot") "grey" %}{% if sortie.combat_role %} {% role_badge sortie.combat_role %}{% endif %}{% endif %}
{% outcome_badge sortie.outcome %}
{% if detail.has_ram %}{% if detail.ram_with %}{% blocktranslate with enemy=detail.ram_with asvar ram_tip %}Collided with {{ enemy }}: counts as a kill for both pilots. Ram detection can occasionally be wrong.{% endblocktranslate %}{% else %}{% translate "Collided with another aircraft: counts as a kill for both pilots. Ram detection can occasionally be wrong." as ram_tip %}{% endif %}{% badge _("Ram") "orange" title=ram_tip icon="event/ram" %}{% endif %}
{% if sortie.mission.is_live %}{% badge _("Live") "green" title=_("This mission is still running.") %}{% endif %}
{% if sortie.taxi_accident %}{% badge _("Taxi accident") "orange" icon="stat/taxi-accidents" %}{% endif %}
{% if sortie.strafed_on_ground %}{% badge _("Strafed on the ground") "orange" icon="stat/strafed" %}{% endif %}
{{ sortie.mission.mission_file|mission_name }}
{% blocktranslate with when=sortie.spawned_at|local_time %}spawned {{ when }}{% endblocktranslate %}
{% if sortie.name_at_time != sortie.player.current_name %} {% blocktranslate with name=sortie.player.current_name %}now playing as {{ name }}{% endblocktranslate %}{% endif %}
{{ sortie.name_at_time }}