{# il2ks-template: templates/il2ks/sorties/parts/timeline_table.html v1 - copy this line along when you override #} {% load i18n il2ks %}{% comment %} Timeline rows as a table. Context: rows (sortie_view.TimelineRow: kind, icon, label, tone, clock, utc, place, text, who, count, summary, damage, ammo, ammo_title, children). A grouped row (kind "kill_group") folds its children in a details element, the first 20 listed (OQ-96). {% endcomment %}
{% col_th _("Damage") numeric=True hint="timeline_damage" %} {% for row in rows %} {% endfor %}
{% translate "Time" %}{% translate "Event" %}{% translate "Details" %}
{{ row.clock }} {{ row.at|local_clock }} {% icon row.icon %}{{ row.label }} {% if row.children %}
{% blocktranslate with n=row.count|num %}{{ n }} ground targets{% endblocktranslate %}: {{ row.summary }}
    {% for child in row.children|slice:":20" %}
  • {{ child.clock }} {% include "il2ks/sorties/parts/who.html" with who=child.who %}
  • {% endfor %}{% if row.count > 20 %}
  • {% blocktranslate with n=row.count|add:"-20"|num %}…and {{ n }} more (the breakdown by target type above counts them all){% endblocktranslate %}
  • {% endif %}
{% else %} {% if row.ram %}{% badge _("Ram") "orange" icon="event/ram" %} {% endif %}{% if row.text %}{{ row.text }}{% endif %} {% if row.who %}{% if row.kind == "shot_down" or row.kind == "destroyed" or row.kind == "killed" or row.kind == "died" %}{% translate "by" %} {% elif row.kind == "friendly_fire" %}{% badge _("Friendly") "red" %} {% endif %}{% include "il2ks/sorties/parts/who.html" with who=row.who %}{% endif %} {% if row.ammo %}{{ row.ammo }}{% endif %} {% endif %}
{% if row.damage %}{{ row.damage }}{% endif %}