You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
81 lines
3.0 KiB
HTML
81 lines
3.0 KiB
HTML
{% set page_name = "contest_detail" %}
|
|
{% extends "layout/basic.html" %}
|
|
{% import "components/contest.html" as contest with context %}
|
|
{% import "components/record.html" as record with context %}
|
|
{% import "components/problem.html" as problem with context %}
|
|
{% block content %}
|
|
<div class="row">
|
|
<div class="medium-9 columns">
|
|
<div class="section">
|
|
<div class="section__body typo">
|
|
{{ tdoc['content']|markdown|safe }}
|
|
{% if model.contest.isOngoing(tdoc) %}
|
|
<blockquote class="warn">
|
|
<p>{{ _('We will check code similarity after this contest.') }}</p>
|
|
</blockquote>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
{% if model.contest.isOngoing(tdoc) or model.contest.isDone(tdoc) %}
|
|
<div class="section">
|
|
<div class="section__header">
|
|
<h1 class="section__title">{{ _('Problem') }}</h1>
|
|
</div>
|
|
{% if attended or model.contest.isDone(tdoc) %}
|
|
<div class="section__body no-padding">
|
|
<table class="data-table">
|
|
<colgroup>
|
|
{% if handler.hasPerm(perm.PERM_LOGGEDIN) %}
|
|
<col class="col--status">
|
|
<col class="col--submit-at">
|
|
{% endif %}
|
|
<col class="col--problem">
|
|
</colgroup>
|
|
<thead>
|
|
<tr>
|
|
{% if handler.hasPerm(perm.PERM_LOGGEDIN) %}
|
|
<th class="col--status record-status--border">{{ _('Status') }}</th>
|
|
<th class="col--submit-at">{{ _('Last Submit At') }}</th>
|
|
{% endif %}
|
|
<th class="col--problem">{{ _('Problem') }}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for pid in tdoc.pids %}
|
|
<tr>
|
|
{% if handler.hasPerm(perm.PERM_LOGGEDIN) %}
|
|
{% if psdict[pid] and psdict[pid].rid %}
|
|
{% set rdoc = rdict[psdict[pid].rid] %}
|
|
{% if handler.canShowRecord(tdoc) %}
|
|
{{ record.render_status_td(rdoc) }}
|
|
{% else %}
|
|
<td class="col--status record-status--border"><a href="/r/{{ rdoc._id }}">{{ _('Submitted') }}</a></td>
|
|
{% endif %}
|
|
<td class="col--submit-at">{{ datetime_span(rdoc._id)|safe }}</td>
|
|
{% else %}
|
|
<td class="col--status record-status--border">{{ _('No Submissions') }}</td>
|
|
<td class="col--submit-at">-</td>
|
|
{% endif %}
|
|
{% endif %}
|
|
<td class="col--problem col--problem-name">
|
|
#{{ loop.index }}:
|
|
{{ problem.render_problem_title(pdict[pid], tdoc=tdoc, show_invisible_flag=false, show_tags=false) }}
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
{% else %}
|
|
{{ nothing.render('Please attend contest to see the problems.') }}
|
|
{% endif %}
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
<div class="medium-3 columns">
|
|
{% set owner_udoc = udict[tdoc.owner] %}
|
|
{% include "partials/contest_sidebar.html" %}
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|