{# il2ks-template: templates/il2ks/missions/_rows.html v1 - copy this line along when you override #} {% load i18n il2ks %}{% comment %} missions/_rows.html: rows of a mission table (home page and mission list); same columns as the list header. Context: missions (an iterable of Mission), columns (optional: the extra columns chosen with ?cols= on the mission list, after Winner), colspan (optional, columns of the empty row; default 9), empty_message (optional text for the empty row). {% endcomment %}{% for m in missions %} {{ m.started_at|local_date }} {{ m.started_at|local_hm }} {{ m|mission_title }}{% if m.is_live %} {% badge _("Live") "green" title=_("This mission is still running.") %}{% endif %}{{ m|game_when }} {{ m.duration_s|duration }} {{ m.players_total|num }} {{ m.sorties_total|num }} {{ m.redfor_sorties|num }}/{{ m.blufor_sorties|num }} {{ m.kills_air|num }} {{ m.kills_ground|num }} {% winner_badge m %} {% for column in columns %}{{ column|cell:m }}{% endfor %} {% empty %} {% empty_row colspan|default:9 empty_message|default:_("No missions match these filters.") %}{% endfor %}