{% extends "tournamentcontrol/competition/compops/base.html" %} {% block body %} {% comment %} One season's row. ``section`` says which list it is in: the lists by date name the competition and how far off the season is, the list of every season sits under its competition's heading and needs neither. How far off is only said within 60 days; beyond that the date says it better. With ``booths``, the page is the front door of someone who is not staff: its rows lead to the season's booths, the only pages open to them. {% endcomment %} {% partialdef event %}
  • {{ season.title }}{% if section != "all" %}{{ season.competition.title }}{% endif %}{% if not season.enabled %}Not public{% endif %}{% if section == "upcoming" and season.compops_days <= 60 %}{% if season.compops_days == 1 %}tomorrow{% else %}in {{ season.compops_days }} days{% endif %}{% elif section == "recent" and season.compops_days <= 60 %}{% if season.compops_days == 1 %}ended yesterday{% else %}ended {{ season.compops_days }} days ago{% endif %}{% endif %}{% if not season.first_day %}No matches scheduled{% elif season.first_day == season.last_day %}{{ season.first_day|date:"j M Y" }}{% else %}{{ season.first_day|date:"j M" }} – {{ season.last_day|date:"j M Y" }}{% endif %}{% if section == "now" and not booths %}{% if season.compops_next_day == season.compops_today %}Open today{% else %}Next: {{ season.compops_next_day|date:"D j M" }}{% endif %}{% endif %}
  • {% endpartialdef %}
    TOURNAMENT OPS {{ user.get_username }}

    {% if booths %}Commentary booths{% else %}Events{% endif %}

    {% if not events.competitions %}

    There are no events yet.

    {% endif %} {% if events.current %}

    On now

    {% endif %} {% if events.upcoming %}

    Upcoming

    {% endif %} {% if events.recent %}

    Recent

    {% endif %} {% if booths and events.unscheduled %}

    Not yet scheduled

    {% endif %} {% if events.competitions and not booths %}

    All events

    {% with section="all" %}{% for competition, seasons in events.competitions %}

    {{ competition.title }}

    {% endfor %}{% endwith %}
    {% endif %}
    {% endblock %}