{% load i18n tz %} {# the enclosing page activates the place's timezone; a ground may still keep its own #} {% get_current_timezone as place_tz %} {% trans "TBA" as tba context "abbreviation: to be advised" %} {% for day, matches in matches_by_date.items %}
| {% trans "Time" %} | {% if show_ground %}{% trans "Field" %} | {% endif %}{% trans "Division" %} | {% trans "Home" %} | {% trans "Score" %} | {% trans "Away" %} | |
|---|---|---|---|---|---|---|
| {% timezone match.play_at.timezone|default:place_tz %}{{ match.datetime|time|default:tba }}{% endtimezone %} | {% if show_ground %}{{ match.play_at.title|default:tba }} | {% endif %}{% url application.name|add:":division" competition=competition.slug season=season.slug division=match.stage.division.slug as url1 %} {% url application.name|add:":division" season=season.slug division=match.stage.division.slug as url2 %} {% url application.name|add:":division" division=match.stage.division.slug as url3 %} {{ match.stage.division.short_title|default:match.stage.division.title }} | {{ match.get_home_team.title }} | {% if match.home_team_score is not None or match.away_team_score is not None %} {{ match.home_team_score|default_if_none:"" }} – {{ match.away_team_score|default_if_none:"" }} {% else %} {% trans "v" context "abbreviation: versus" %} {% endif %} | {{ match.get_away_team.title }} | {% url application.name|add:":match" competition=competition.slug season=season.slug division=match.stage.division.slug match=match.pk as url1 %} {% url application.name|add:":match" season=season.slug division=match.stage.division.slug match=match.pk as url2 %} {% url application.name|add:":match" division=match.stage.division.slug match=match.pk as url3 %} {% trans "Detail" %} |
{% trans "No matches have been scheduled here yet." %}
{% endfor %}