{% extends "tournamentcontrol/competition/compops/base.html" %}
{% load static tz compops_tags %}
{% block title %}Booth · {{ ground.title }}{% endblock %}
{% block extracss %}{% endblock %}
{% block body_attrs %}class="booth" data-signals__ifmissing="{pane: '{{ pane|default:'' }}', match: {{ pane_match.pk|default:'null' }}, modal: false, day: '{% if preview %}{{ daystr }}{% endif %}', view: {{ view.pk|default:'null' }}}" data-indicator="connected" data-effect="$pane; $match; @get('{% url 'compops:booth-events' competition=season.competition.slug season=season.slug ground=ground.slug %}', {retryMaxCount: 1000})"{% endblock %}
{% block body %}{% timezone tzinfo %}
BOOTH{{ ground.title }}updates connected
{# The time at the ground, kept by the browser between the page's loads. #}
{{ now|time:"H:i" }}
{% comment %}
A lamp that shows why an action was refused is held, as a match_row in
day.html is: the stream's snapshot, and a push about another ground, mark the
lamp too (keep_held), so they pass over a held lamp, and data-preserve-attr
keeps the mark off a lamp they update. A refusal is sent in replace mode, so
its mark lands; the next action, or a push about this ground, sends the lamp
without the mark and releases it.
{% endcomment %}
{% partialdef lamp inline %}
{% if status == "live" %}
ON AIR
{% elif status == "testing" %}
STANDBY
{% else %}
OFF AIR
{% endif %}
{% if broadcast %}{% if status == "live" %}Broadcasting{% elif status == "testing" %}Standby{% elif upcoming %}Next{% else %}Off air{% endif %} · {{ broadcast.get_home_team_plain }} v {{ broadcast.get_away_team_plain }}{{ broadcast.stage.division.title }} · kick-off {{ broadcast.time|time:"H:i" }}{% if broadcast.live_stream_status_at %} · {{ status }} since {{ broadcast.live_stream_status_at|time:"H:i" }}{% endif %}{% if not broadcast.external_identifier %} · no YouTube broadcast{% endif %}
{% elif preview %}Looking at {{ day|date:"l j F" }}
{% else %}Nothing on {{ ground.title }} right now{% endif %}
{% for error in errors %}{{ error }}{% endfor %}
{% if can_stream and broadcast and broadcast.external_identifier %}
{% if status == "live" %}
{% elif status == "complete" %}
{% elif can_go_live %}
{% endif %}
{% endif %}
{% if preview %}The broadcast is run from today's booth.{% elif view %}
{# A booth opened on one match: what stands between it and the air. #}
{% if blocked_by %}{{ blocked_by.get_home_team_plain }} v {{ blocked_by.get_away_team_plain }} is on air{% if can_stream %} · end that broadcast first{% endif %}{% elif can_stream %}{% if armable %}{% elif arm_reason and status != "live" and status != "complete" %}{{ arm_reason }}{% endif %}{% endif %}
{% else %}
{% if armable_match %}Next on {{ ground.title }} today: {{ armable_match.time|time:"H:i" }} {{ armable_match.get_home_team_plain }} v {{ armable_match.get_away_team_plain }}{% else %}No more broadcasts on {{ ground.title }} today{% endif %}{% if can_stream %}
{% if armable %} · {% elif arm_reason and armable_match or arm_reason and status == "live" %} · {{ arm_reason }}{% endif %}
{% endif %}{% endif %}
{% endpartialdef %}
{% partialdef strip inline %}
{# Each match is a link to the booth opened on it (booth-match). #}
{% endtimezone %}{% endblock %}
{% block extrajs %}{% endblock %}
{# Partials the page does not show where they are defined. #}
{% partialdef pane_sheets %}