{# il2ks-template: templates/il2ks/sorties/parts/kills.html v1 - copy this line along when you override #} {% load i18n il2ks %}{% comment %} Kills and assists made by this sortie. Context: sortie, detail (air_kills, ground, assists, friendly). Air kills: player victims (Kill rows) and AI aircraft (timeline). Ground kills: the total and the collapsible breakdown by category (kills_ground_*) with the static share (OQ-33); the single kills are in the timeline. Friendly kills are never counted as kills (FR-ING-23) and are marked as such. {% endcomment %}

{% translate "Kills and assists" %}

{% blocktranslate with n=sortie.kills_air|num %}Air kills: {{ n }}{% endblocktranslate %}

{% if sortie.kills_air_ai %}

{% blocktranslate with players=sortie.kills_air_pvp|num ai=sortie.kills_air_ai|num %}{{ players }} player aircraft, {{ ai }} AI aircraft{% endblocktranslate %}

{% endif %} {% if detail.air_kills %} {% translate "Victim" as victim_label %}{% include "il2ks/sorties/parts/kill_table.html" with rows=detail.air_kills victim_label=victim_label %} {% else %}

{% translate "No air kills." %}

{% endif %}

{% blocktranslate with n=sortie.kills_ground|num %}Ground kills: {{ n }}{% endblocktranslate %}

{% if detail.ground.total %} {% blocktranslate with share=detail.ground.static_share asvar static_hint %}{{ share }} static objects{% endblocktranslate %} {% accordion _("Breakdown by target type") hint=static_hint open=True %}
{% for row in detail.ground.rows %} {% endfor %}
{% translate "Target" %}{% translate "Kills" %}{% translate "Share" %}
{% icon row.icon %} {{ row.label }}{{ row.count|num }}{{ row.share }}
{% translate "Total" %}{{ detail.ground.total|num }}

{% blocktranslate with n=detail.ground.static|num %}{{ n }} of them were static objects (not moving), such as parked vehicles, fences and crates.{% endblocktranslate %}

{% endaccordion %} {% else %}

{% translate "No ground kills." %}

{% endif %}
{% if detail.assists %}

{% blocktranslate with n=sortie.assists|num %}Assists: {{ n }}{% endblocktranslate %}

{% blocktranslate with air=sortie.assists_air|num ground=sortie.assists_ground|num %}{{ air }} on aircraft, {{ ground }} on ground targets{% endblocktranslate %}

{% translate "Target" as victim_label %}{% include "il2ks/sorties/parts/kill_table.html" with rows=detail.assists victim_label=victim_label %} {% endif %} {% if detail.friendly %} {% notice "warning" title=_("Friendly fire") %}{% blocktranslate with n=sortie.friendly_kills|num %}{{ n }} friendly kills in this sortie. They do not count as kills.{% endblocktranslate %}{% endnotice %} {% translate "Friendly victim" as victim_label %}{% include "il2ks/sorties/parts/kill_table.html" with rows=detail.friendly victim_label=victim_label %} {% endif %}