{% extends "tournamentcontrol/competition/compops/base.html" %} {% load static tz %} {% comment %} The scoreboard of a ground, for a big screen ("display") or to lay over a live stream ("overlay"). To brand it, override the small templates it includes, in compops/scoreboard/: _brand.html (the tournament, above the score), _logo.html (one team's logo), _sponsors.html (below the clock) and _style.html (colours and fonts). Leave this template as it is: the live updates find the score, the clock and the dots by the ids in the board partial, and the clock is counted by scoreboard.js from the data attributes of #sb-clock. {% endcomment %} {% block title %}Scoreboard · {{ ground.title }}{% endblock %} {% block extracss %}{% include "tournamentcontrol/competition/compops/scoreboard/_style.html" %}{% endblock %} {% block body_attrs %}class="scoreboard {{ variant }}" data-signals__ifmissing="{board: '{{ variant }}'}" data-indicator="connected" data-effect="@get('{{ events_url }}', {retryMaxCount: 1000})"{% endblock %} {% block body %}{% timezone tzinfo %}
{% include "tournamentcontrol/competition/compops/scoreboard/_brand.html" %}
{% partialdef board inline %} {# Asked for again every 20 seconds, so the board moves to the next match by itself. #}
{% if match %}
{{ home.name }}
{{ home.score }}
{{ away.score }}
{{ away.name }}
{% if clock %}
{{ moment.label }}
{{ moment.display }}
{% if dots %}
    {% for dot in dots %}
  1. {% endfor %}
{% endif %} {% endif %}

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

{% else %}

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

{% endif %}
{% endpartialdef %} {% if variant == "display" %}{% endif %} {% endtimezone %}{% endblock %} {% block extrajs %}{% endblock %}