{# il2ks-template: templates/il2ks/sorties/parts/all_row.html v1 - copy this line along when you override #} {% load i18n il2ks %}{% comment %} One row of the site-wide sortie list. Context: sortie (PlayerSortie with player, mission and aircraft), columns (the extra columns chosen with ?cols=, after Flight time). The whole row opens the sortie (the date's stretched link); the pilot, aircraft and mission links keep working. {% endcomment %} {{ sortie.spawned_at|local_short }} {% include "il2ks/missions/_player.html" with player=sortie.player name=sortie.name_at_time tour_q=sortie.mission.tour_id|tour_qs %}{% if sortie.role == "gunner" %}{% badge _("Gunner") "purple" %}{% endif %} {% include "il2ks/sorties/parts/aircraft_cell.html" %} {{ sortie.mission|mission_title }}{% if sortie.mission.is_live %} {% badge _("Live") "green" title=_("This mission is still running.") %}{% endif %} {% outcome_badge sortie.outcome %} {% pilot_fate_badge sortie %} {{ sortie.kills_air|num }} {{ sortie.kills_ground|num }} {{ sortie.flight_time_s|duration }} {% for column in columns %}{{ column|cell:sortie }}{% endfor %}