{% 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}" 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{{ 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{% 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 %}
{% else %}Nothing on {{ ground.title }} right now{% endif %}
{% for error in errors %}{{ error }}{% endfor %}
{% if broadcast and broadcast.external_identifier %}
{% if status == "live" %}
{% url 'compops:booth-onair' competition=season.competition.slug season=season.slug ground=ground.slug status='complete' as end_url %}
{% elif status != "complete" %}
{% url 'compops:booth-onair' competition=season.competition.slug season=season.slug ground=ground.slug status='live' as live_url %}
{% else %}{% endif %}
{% endif %}
{% 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 armable %}{% url 'compops:booth-arm' competition=season.competition.slug season=season.slug ground=ground.slug as arm_url %} · {% elif arm_reason %} · {{ arm_reason }}{% endif %}
{% endpartialdef %}
{% partialdef strip inline %}
Previous on {{ ground.title }}
{% if previous %}
{{ previous.get_home_team_plain }} v {{ previous.get_away_team_plain }}
{% endtimezone %}{% endblock %}
{% block extrajs %}{% endblock %}
{# Partials the page does not show where they are defined. #}
{% partialdef pane_sheets %}