{% load thumbnail %} {% load arkestra_date_tags typogrify_tags humanize thumbnail placeholder_tags %} {% load mathfilters %}
c  {{ gametournamentplayoff.start_datetime }}  по  {{ gametournamentplayoff.stop_datetime }}
{% regroup gametournamentplayoff.gamematch_set.all|dictsortreversed:"finaltype_id" by finaltype as gamegroup_list %} {% for gamegroup in gamegroup_list %} {% endfor %} {% for gamegroup in gamegroup_list %} {% with offset=forloop.counter %} {% endwith %} {% endfor %}
{{gamegroup.grouper.detail}}
{% for gamematch in gamegroup.list %} {% if gamegroup.grouper.id != -3 %} {% if forloop.last %}
{% else %}
{% endif %} {% else %}
{% endif %}
{% if gamematch.start_datetime %} {{gamematch.start_datetime|date:"d M Y H:i"}}  {% endif %}
{% with team=gamematch.team_a %} {% if team.image %} {% else %} {% if gamematch.score_a > gamematch.score_b %}
{% else %}
{% endif %} {% endif %} {% if team.name %} {% endif %} {% endwith %}

{{gamematch.score_a|default_if_none:"?"}} : {{gamematch.score_b|default_if_none:"?"}}

{% with team=gamematch.team_b %} {% if team.image %} {% else %} {% if gamematch.score_a < gamematch.score_b %}
{% else %}
{% endif %} {% endif %} {% if team.name %} {% endif %} {% endwith %}
{% endfor %}