{# il2ks-template: templates/il2ks/players/detail_ground.html v1 - copy this line along when you override #} {% load i18n il2ks %}{% comment %} detail_ground.html: the ground-kill breakdown (FR-WEB-4, OQ-33) in a collapsed accordion right under the stat tiles, so a total inflated by fences and crates stays honest. Nine categories (they add up to kills_ground) with icon, count and share, plus how many of the kills were static objects. Context: stats (the player, or their PlayerTour row with ?tour=), ground (list of GroundRow: key, icon, label, count). {% endcomment %}{% if stats.kills_ground %} {% blocktranslate with total=stats.kills_ground|num static=stats.kills_ground_static|num asvar ground_hint %}{{ total }} in total, {{ static }} of them static objects{% endblocktranslate %} {% accordion _("Ground kills by category") ground_hint %}
{% for row in ground %} {% endfor %}
{% translate "Category" %}{% translate "Kills" %}{% translate "Share" %}{% translate "Share of ground kills" %}
{% icon row.icon "ground-table__icon" %} {{ row.label }} {{ row.count|num }} {{ row.count|percent:stats.kills_ground }}
{% translate "Total" %}{{ stats.kills_ground|num }}100%
{% translate "of them static objects" %}{{ stats.kills_ground_static|num }}{{ stats.kills_ground_static|percent:stats.kills_ground }}
{% endaccordion %} {% endif %}