{# il2ks-template: templates/il2ks/players/search_table.html v1 - copy this line along when you override #} {% load i18n il2ks %}{% comment %} search_table.html: the player table of the search page. Context: q, sort, page_obj (Page of PlayerHit(player, matched_name)), default_columns (the columns every visitor sees after the name: flight time, Elo, attack proficiency, K/L and the two longest kill streaks), columns (the optional columns chosen with ?cols=, after those; all-time values), colspan. A row whose `matched_name` is set was found by an old nickname and says "also known as". {% endcomment %}
{% sort_th "name" _("Player") %} {% for column in default_columns %}{% sort_th column.key column.label numeric=True hint=column.description %}{% endfor %} {% for column in columns %}{% sort_th column.key column.label numeric=True hint=column.description %}{% endfor %} {% for hit in page_obj.object_list %} {% for column in default_columns %}{% endfor %} {% for column in columns %}{% endfor %} {% empty %} {% if q %} {% blocktranslate with query=q asvar nothing %}No player found for “{{ query }}”.{% endblocktranslate %} {% empty_row colspan nothing %} {% else %} {% empty_row colspan _("No players yet.") %} {% endif %} {% endfor %}
{{ hit.player.current_name }} {% if hit.matched_name %}{% blocktranslate with name=hit.matched_name %}also known as {{ name }}{% endblocktranslate %}{% endif %} {{ column|cell:hit.player }}{{ column|cell:hit.player }}