{% 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 ``front_door``, the page is that of someone who is not staff: a row leads to the season's booths, or to its scoreboards for someone who may only keep those, and has a button for the scoreboards of someone who may do both. {% 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 season.compops_booth and season.compops_score %}Scoreboards{% endif %}{% if section == "now" and not front_door %}{% 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 and not scoreboards %}Commentary booths{% elif scoreboards and not booths %}Scoreboards{% 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 front_door and events.unscheduled %}

    Not yet scheduled

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

    All events

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

    {{ competition.title }}

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