2020-01-21 06:35:58 +00:00
{% extends "common-content.html" %}
{% block title_ruler %}{% endblock %}
{% block title_row %}
{% set tab = 'detail' %}
{% set title = contest.name %}
{% include "contest/contest-tabs.html" %}
{% endblock %}
{% block content_js_media %}
< script type = "text/javascript" >
$(document).ready(function () {
$('.time-remaining').each(function () {
count_down($(this));
});
});
< / script >
{% include "contest/media-js.html" %}
{% include "comments/media-js.html" %}
2022-11-17 00:48:32 +00:00
{% include "actionbar/media-css.html" %}
2020-01-21 06:35:58 +00:00
{% endblock %}
{% block content_media %}
{% include "comments/media-css.html" %}
2022-11-17 00:48:32 +00:00
{% include "actionbar/media-css.html" %}
2020-01-21 06:35:58 +00:00
{% endblock %}
{% block body %}
< div id = "banner" >
< a href = "https://www.timeanddate.com/worldclock/fixedtime.html?msg={{ contest . name | urlquote ( ' ' ) } } & amp ; iso =
{{- contest.start_time|utc|date('Y-m-d\TH:i:s') }}" class="date">
2021-05-24 20:00:36 +00:00
{%- if contest.is_in_contest(request.user) and not request.participation.live -%}
{% if request.participation.spectate %}
2021-12-27 08:22:48 +00:00
{% trans countdown=contest.end_time|as_countdown %}Spectating, contest ends in {{countdown}}.{% endtrans %}
2021-05-24 20:00:36 +00:00
{% elif request.participation.end_time %}
2021-12-27 08:22:48 +00:00
{% trans countdown=request.participation.end_time|as_countdown %}Participating virtually, {{countdown}} remaining.{% endtrans %}
2020-01-21 06:35:58 +00:00
{% else %}
{{- _('Participating virtually.') -}}
{% endif %}
{%- else -%}
{% if contest.start_time > now %}
2021-12-27 08:22:48 +00:00
{% trans countdown=contest.start_time|as_countdown %}Starting in {{countdown}}.{% endtrans %}
2020-01-21 06:35:58 +00:00
{% elif contest.end_time < now % }
{{- _('Contest is over.') -}}
{% else %}
2021-05-24 20:00:36 +00:00
{%- if has_joined -%}
{% if live_participation.ended %}
2021-12-27 08:22:48 +00:00
{% trans countdown=contest.end_time|as_countdown %}Your time is up! Contest ends in {{countdown}}.{% endtrans %}
2020-01-21 06:35:58 +00:00
{% else %}
2021-12-27 08:22:48 +00:00
{% trans countdown=live_participation.end_time|as_countdown %}You have {{countdown}} remaining.{% endtrans %}
2020-01-21 06:35:58 +00:00
{% endif %}
{%- else -%}
2021-12-27 08:22:48 +00:00
{% trans countdown=contest.end_time|as_countdown %}Contest ends in {{countdown}}.{% endtrans %}
2020-01-21 06:35:58 +00:00
{%- endif -%}
{% endif %}
{%- endif -%}
< / a >
< div id = "time" >
{% if contest.time_limit %}
{% trans trimmed start_time=contest.start_time|date(_("F j, Y, G:i T")), end_time=contest.end_time|date(_("F j, Y, G:i T")), time_limit=contest.time_limit|timedelta('localized-no-seconds') %}
< b > {{ time_limit }}< / b > window between < b > {{ start_time }}< / b > and < b > {{ end_time }}< / b >
{% endtrans %}
{% else %}
{% trans trimmed length=contest.contest_window_length|timedelta("localized-no-seconds"), start_time=contest.start_time|date(_("F j, Y, G:i T")) %}
< b > {{ length }}< / b > long starting on < b > {{ start_time }}< / b >
{% endtrans %}
{% endif %}
< / div >
< / div >
< div class = "content-description" >
{% cache 3600 'contest_html' contest.id MATH_ENGINE %}
2022-10-25 04:59:04 +00:00
{{ contest.description|markdown|reference|str|safe }}
2020-01-21 06:35:58 +00:00
{% endcache %}
< / div >
2021-05-24 20:00:36 +00:00
{% if contest.ended or request.user.is_superuser or is_editor or is_tester %}
2020-01-21 06:35:58 +00:00
< hr >
< div class = "contest-problems" >
< h2 style = "margin-bottom: 0.2em" > < i class = "fa fa-fw fa-question-circle" > < / i > {{ _('Problems') }} < / h2 >
< table id = "contest-problems" class = "table" >
< thead >
< tr >
< th > {{ _('Problem') }}< / th >
< th > {{ _('Points') }}< / th >
< th > {{ _('AC Rate') }}< / th >
< th > {{ _('Users') }}< / th >
< th > < / th >
< / tr >
< / thead >
< tbody >
{% for problem in contest_problems %}
< tr >
< td >
{% if problem.is_public %}
< a href = "{{ url('problem_detail', problem.code) }}" > {{ problem.i18n_name }}< / a >
{% else %}
{{ problem.i18n_name }}
{% endif %}
< / td >
< td > {{ problem.points|floatformat }}{% if problem.partial %}p{% endif %}< / td >
< td > {{ problem.ac_rate|floatformat(1) }}%< / td >
< td >
{% if problem.is_public %}
< a href = "{{ url('ranked_submissions', problem.code) }}" > {{ problem.user_count }}< / a >
{% else %}
{{ problem.user_count }}
{% endif %}
< / td >
< td >
{% if problem.is_public and problem.has_public_editorial %}
< a href = "{{ url('problem_editorial', problem.code) }}" > {{ _('Editorial') }}< / a >
{% endif %}
< / td >
< / tr >
{% endfor %}
< / tbody >
< / table >
< / div >
2022-11-17 00:48:32 +00:00
< hr >
2020-01-21 06:35:58 +00:00
{% endif %}
2022-11-17 00:48:32 +00:00
{% include "actionbar/list.html" %}
< br >
2020-01-21 06:35:58 +00:00
{% include "comments/list.html" %}
{% endblock %}
{% block description_end %}{% endblock %}
{% block bodyend %}
{{ super() }}
{% include "comments/math.html" %}
{% endblock %}
k