{# il2ks-template: templates/il2ks/players/detail_pve.html v1 - copy this line along when you override #}
{% load i18n il2ks %}{% comment %}
detail_pve.html: the PvE breakdown (FR-WEB-21, doc 13) in a collapsed accordion under the ground-kill one: who killed this
player (deaths and lost aircraft by counterpart class, so "how often does AA get me?" has an answer) and whom they killed
(player aircraft, AI aircraft, anti-aircraft, other ground objects). Context: stats (the counters row the page shows: it
follows the tour when the page has a tour selector), pve_kills (web.pve.KillClassRow: label, count, share), pve_losses
(web.pve.LossRow: label, deaths, share, planes_lost).
{% endcomment %}{% if stats.deaths or stats.planes_lost or stats.kills_air or stats.kills_ground %}
{% blocktranslate count n=stats.deaths with aaa=stats.deaths_by_aaa|percent:stats.deaths asvar pve_hint %}{{ n }} death, {{ aaa }} to anti-aircraft{% plural %}{{ n }} deaths, {{ aaa }} to anti-aircraft{% endblocktranslate %}
{% accordion _("Who kills you, and whom you kill") pve_hint %}
{% translate "Deaths and lost aircraft by cause" %}
| {% translate "Caused by" %} | {% translate "Deaths" %} | {% translate "Share" %} | {% col_th _("Aircraft lost") numeric=True hint="pve_lost" %}
{% for row in pve_losses %}
| {{ row.label }} |
{{ row.deaths|num }} |
{{ row.share }} |
{{ row.planes_lost|num }} |
{% endfor %}
| {% translate "Total" %} | {{ stats.deaths|num }} | | {{ stats.planes_lost|num }} |
{% translate "Kills by victim" %}
| {% translate "Victim" %} | {% translate "Kills" %} | {% translate "Share" %} |
{% for row in pve_kills %}
| {{ row.label }} |
{{ row.count|num }} |
{{ row.share }} |
{% endfor %}
{% endaccordion %}
{% endif %}