{% 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 %}