{% extends "tournamentcontrol/competition/compops/base.html" %} {% load static tz %} {% block title %}Scorer · {{ ground.title }}{% endblock %} {% block extracss %}{% endblock %} {% block body_attrs %}class="scorer" data-signals__ifmissing="{board: 'scorer', pick: 0}" data-indicator="connected" data-effect="@get('{{ events_url }}', {retryMaxCount: 1000})"{% endblock %} {% block body %}{% timezone tzinfo %}
SCORER {{ ground.title }} live updates
{% partialdef scorer inline %} {# The scorer's copy of the board: the same ids, so scoreboard.js counts its clock too. #}
{% if match %}

{{ match.stage.division.title }} · {{ match.time|time:"H:i" }}

{% for side, team in sides %}

{{ team.name }}

{% url 'compops:scorer-score' competition=season.competition.slug season=season.slug ground=ground.slug match_pk=match.pk side=side step='down' as down_url %}
{% csrf_token %}
{{ team.score }} {% url 'compops:scorer-score' competition=season.competition.slug season=season.slug ground=ground.slug match_pk=match.pk side=side step='up' as up_url %}
{% csrf_token %}
{% if team.players and team.latest %} {# Who scored the team's latest score: asked after "+" (the pick signal), or when the scorer opens it. #} {% with latest=team.latest %} {% url 'compops:scorer-player' competition=season.competition.slug season=season.slug ground=ground.slug match_pk=match.pk event_pk=latest.pk as player_url %}

{% if team.who %}{{ team.who }}{% else %}Scorer not named{% endif %}

{% endwith %} {% endif %}
{% endfor %} {% if asks %} {% endif %} {% if clock %}
{{ moment.label }}
{{ moment.display }}
{% if can_start %} {% url 'compops:scorer-start' competition=season.competition.slug season=season.slug ground=ground.slug match_pk=match.pk as start_url %}
{% csrf_token %}
{% endif %} {% endif %} {% else %}

No matches on {{ ground.title }} today.

{% endif %}
{% endpartialdef %} {% endtimezone %}{% endblock %} {% block extrajs %}{% endblock %}