{% import "components/paginator.html" as paginator with context %} {% extends "layout/basic.html" %} {{ set(UiContext, 'tdoc', tdoc) }} {{ set(UiContext, 'tsdoc', tsdoc) }} {% set type = 'homework' if tdoc.rule == 'homework' else 'contest' %} {% set compactScoreboard = type == 'contest' and rows[0][0].type == 'rank' and rows[0][1].type == 'user' %} {% set detailColumnCount = rows[0]|length - 2 %} {# Keep the 34rem minimum on older browsers when the natural width is smaller. #} {% set smallScoreboard = compactScoreboard and detailColumnCount < 4 %} {% block content %}

{{ tdoc.title }}{% if not compactScoreboard %}  {% endif %} {% for id, name in availableViews %}{% if id != 'default' %} {% if ['html', 'csv', 'xlsx', 'ghost'].includes(id) %} {{ _('Export as {0}').format(_(name)) }} {% else %} {{ _(name) }} {% endif %} {% endif %}{% endfor %} {% if model.contest.isDone(tdoc) and tdoc.lockAt and handler.user.own(tdoc) and not tdoc.unlocked %}
{% endif %}

{% include "partials/scoreboard.html" %}
{% endblock %}