{% load thumbnail %} {% load arkestra_date_tags typogrify_tags humanize thumbnail placeholder_tags %} {% load mathfilters %} {% with gamedivision=instance.gamedivision %}

Дивизион «{{ gamedivision.name }}»

Команды: {% for team in gamedivision.teams.all %} {% endfor %}
  Игр   Выиграли   Ничьи   Проиграли   Очки
«{{team.name}}»   {{team.ngames}}   {{team.nwins}}   {{team.ndraws}}   {{team.nloses}}   {{team.npoints}}

{% with p2t=gamedivision.get_max_ngoalsntrans_p2t %} {% with player=p2t.player %} {% if player %}

Лучший бомбардир

{{player.second_name}} {{player.first_name}}

{% endif %} {% endwith %} {% endwith %}
{% with p2t=gamedivision.get_max_ngoals_p2t %} {% with player=p2t.player %} {% if player %}

Лучший снайпер

{{player.second_name}} {{player.first_name}}

{% endif %} {% endwith %} {% endwith %}
{% with p2t=gamedivision.get_max_ntrans_p2t %} {% with player=p2t.player %} {% if player %}

Лучший ассистент

{{player.second_name}} {{player.first_name}}

{% endif %} {% endwith %} {% endwith %}
{% with p2t=gamedivision.get_min_safety_factor_p2t %} {% with player=p2t.player %} {% if player %}

Лучший вратарь

{{player.second_name}} {{player.first_name}}

{% endif %} {% endwith %} {% endwith %}

{% for gametournamentplayoff in gamedivision.gametournamentplayoffs.all %}
Play-Off
{% 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 %}
{% endfor %}
{% endfor %}
{% endwith %}