{# il2ks-template: templates/il2ks/players/detail_ratios.html v1 - copy this line along when you override #} {% load i18n il2ks %}{% comment %} detail_ratios.html: ratios from the stored counters (TD-22); the dash appears where the denominator is 0. Air-to-air ratios only; K/D and K/L count air kills. The ground kills per sortie moved to detail_ground_scores.html. Context: stats (the player, or their PlayerTour row with ?tour=), survived. {% endcomment %}
{% translate "K/D" %} {% translate "air kills per death" %}
{{ stats.kills_air|ratio:stats.deaths }}{% stat_mark "kd" %}
{% translate "K/L" %} {% translate "air kills per aircraft lost" %}
{{ stats.kills_air|ratio:stats.planes_lost }}{% stat_mark "kl" %}
{% translate "Air kills per sortie" %}
{{ stats.kills_air|ratio:stats.sorties }}{% stat_mark "air_per_sortie" %}
{% translate "Air kills per flight hour" %}
{{ stats.kills_air|per_hour:stats.flight_time_s }}{% stat_mark "air_per_hour" %}
{% translate "Survival rate" %} {% translate "sorties without a death" %}
{{ survived|percent:stats.sorties }}{% stat_mark "survival" %}
{% stat_mark_note %}