{% extends "tournamentcontrol/competition/base.html" %}
{% load i18n %}
{% load common competition %}
{% block body_class %}{{ block.super }} team{% endblock %}
{% block page_title %}{% trans competition.title %} - {% trans season.title %} - {% trans division.title %} - {% trans team.title %}{% endblock %}
{% block content %}
{% trans "TBA" as tba context "abbreviation: to be advised" %}
{% trans "TBC" as tbc context "abbreviation: to be confirmed" %}
{% block calendar %}
{% url application.name|add:":calendar" competition=competition.slug season=season.slug division=division.slug team=team.slug as url1 %}
{% url application.name|add:":calendar" season=season.slug division=division.slug team=team.slug as url2 %}
{% url application.name|add:":calendar" division=division.slug team=team.slug as url3 %}
📅
{% endblock %}
{% block heading %}
{% trans competition.title %} - {% trans season.title %}
{% trans division.title %}
{% trans team.title %}
{% endblock %}
{% trans "Date" %} |
{% trans "Time" %} |
{% trans "Venue" %} |
{% trans "Opponent" %} |
{% trans "Result" %} |
|
{% for date, matches in team.matches_by_date.items %}
{% for match in matches %}
{% with home=match.get_home_team away=match.get_away_team %}
{{ date }} |
{{ match.datetime|time|default:tba }} |
{{ match.play_at.title|default:tba }} |
{% with match|opponent:team as opponent %}
{% include "tournamentcontrol/competition/_team_opponent.html" %}
{% endwith %}
{% score match team %} |
{% if match.statistics_count %}
{% url application.name|add:":match" competition=competition.slug season=season.slug division=division.slug match=match.pk as url1 %}
{% url application.name|add:":match" season=season.slug division=division.slug match=match.pk as url2 %}
{% url application.name|add:":match" division=division.slug match=match.pk as url3 %}
{% trans "Detail" %}
|
{% else %}
|
{% endif %}
{% endwith %}
{% endfor %}
{% endfor %}
{% block statistics %}
{% if players.count %}
{% trans "Player Statistics" %}
# |
{% trans "Players" %} |
{% trans "Played" %} |
{% trans "Scores" %} |
{% if not team.division.season.mvp_results_public|future %}
{% trans "MVP" context "abbreviation: most valuable player" %}
{% endif %}
|
{% for link in players %}
{{ link.number|default_if_none:"-" }} |
{{ link.person.first_name }} {{ link.person.last_name }} |
{% with stats=link.statistics %}
{{ stats.played|default:"-" }} |
{{ stats.points|default:"-" }} |
{% if not team.division.season.mvp_results_public|future %}
{{ stats.mvp|default:"-" }} |
{% endif %}
{% endwith %}
{% endfor %}
{% endif %}
{% endblock %}
{% block ladder %}
{% for stage, pools in team.ladders.items %}
{% if stage.ladder_summary.count %}
{% if stage.pools.count %}
{% include "tournamentcontrol/competition/ladder/pool.html" %}
{% else %}
{% include "tournamentcontrol/competition/ladder/standard.html" %}
{% endif %}
{% endif %}
{% endfor %}
{% endblock %}
{% endblock %}