{# il2ks-template: templates/il2ks/sorties/parts/summary.html v1 - copy this line along when you override #} {% load i18n il2ks %}{% comment %} Summary: the flight (left) and the result (right). Context: sortie, detail (lost_to: who is behind the loss, FR-WEB-21). Labels follow doc 13: "left the server" is the `disconnected` flag (also set after a landing), never "disconnected in flight"; damage taken is the share of the airframe's health lost and does not mean destroyed (aircraft status does). {% endcomment %}

{% translate "Summary" %}

{# Translators: how the sortie started (in the air, on the runway or at a parking spot), not the verb "to spawn" #}
{% translate "Spawn" %}
{% if sortie.spawn_type == "air" %}{% translate "Air start" %}{% elif sortie.spawn_type == "runway" %}{% translate "Runway" %}{% else %}{% translate "Parking" %}{% endif %}
{% translate "Took off" %}
{% if sortie.took_off_at %}{{ sortie.took_off_at|local_time }}{% elif sortie.air_start %}{{ sortie.spawned_at|local_time }} ({% translate "air start" %}){% else %}{% translate "Never" %}{% endif %}
{% translate "Landed" %}
{% if sortie.landed_at %}{{ sortie.landed_at|local_time }}{% else %}{% translate "No landing" %}{% endif %}
{% translate "Sortie ended" %}
{{ sortie.ended_at|local_time }}
{% translate "Flight time" %}
{{ sortie.flight_time_s|duration }}
{% translate "Takeoffs / landings" %}
{{ sortie.takeoffs|num }} / {{ sortie.landings|num }}
{% if sortie.role != "gunner" %}
{% translate "Payload" %}
{% if sortie.payload_name %}{{ sortie.payload_name }}{% else %}{% blocktranslate with id=sortie.payload_id %}Unknown payload (id {{ id }}){% endblocktranslate %}{% endif %}
{% translate "Modifications" %}
{% for mod_id, mod_name in sortie|weapon_mods %}{% if not forloop.first %} ยท {% endif %}{% if mod_name %}{{ mod_name }}{% else %}{% blocktranslate with id=mod_id %}Unknown modification (id {{ id }}){% endblocktranslate %}{% endif %}{% empty %}{% translate "None" %}{% endfor %}
{% endif %} {% if sortie.combat_role == "attack" and sortie.time_on_target_s is not None %}
{% translate "Time on target" %}
{% if sortie.time_on_target_s %}{{ sortie.time_on_target_s|duration }}{% else %}{% translate "No qualifying attack" %}{% endif %}
{% endif %}
{% translate "Outcome" %}
{% outcome_badge sortie.outcome %}
{% translate "Pilot fate" %}
{% pilot_fate_badge sortie detail=True %}{% if sortie.pilot_fate_source == "inferred" %} {% translate "inferred from the log" %}{% elif sortie.pilot_fate_source == "event" %} {% translate "from a log event" %}{% endif %}
{% if not sortie.is_death and not sortie.is_captured and sortie.pilot_status != "dead" and sortie.pilot_status != "captured" %}
{% translate "Pilot status" %}
{% status_badge sortie.pilot_status %}
{% endif %}
{% translate "Aircraft status" %}
{% aircraft_badge sortie.aircraft_status %}
{# translators: damage the aircraft took in the sortie, 100% when it was destroyed #}
{% translate "Aircraft damage" %}
{% widthratio sortie.damage_taken 1 100 %}%
{% if sortie.pilot_health is not None %} {# translators: health left of the pilot at the end of the sortie, 0% when the pilot died #}
{% if sortie.role == "gunner" %}{% translate "Gunner health" %}{% else %}{% translate "Pilot health" %}{% endif %}
{% widthratio sortie.pilot_health 1 100 %}%
{% endif %}
{% translate "Loss cause" %}
{% if sortie.loss_cause == "attacker" %}{% translate "Enemy action" %}{% elif sortie.loss_cause == "self" %}{% translate "Own doing (terrain, overstress, accident)" %}{% else %}{% translate "Nothing lost" %}{% endif %}
{% if detail.lost_to %}
{% translate "Lost to" %}
{{ detail.lost_to }}
{% endif %} {% if sortie.disconnected %}
{% translate "Left the server" %}
{% translate "Yes" %}
{% endif %} {% if sortie.friendly_kills or sortie.friendly_hits %}
{% translate "Friendly fire" %}
{% blocktranslate with kills=sortie.friendly_kills|num hits=sortie.friendly_hits|num %}{{ kills }} kills, {{ hits }} hits{% endblocktranslate %}
{% endif %}