Files
OnlineJudge/template/src/oj/contest/contest_index.html
2015-09-22 12:56:10 +08:00

46 lines
1.6 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{% extends 'oj_base.html' %}
{% block title %}
{{ contest.title }}
{% endblock %}
{% block body %}
<div class="container main">
<ul class="nav nav-tabs nav-tabs-google">
<li role="presentation" class="active">
<a href="/contest/{{ contest.id }}/">比赛详情</a>
</li>
<li role="presentation">
<a href="/contest/{{ contest.id }}/problems/">题目</a>
</li>
<li role="presentation">
<a href="/contest/{{ contest.id }}/submissions/">提交</a>
</li>
<li role="presentation">
<a href="/contest/{{ contest.id }}/rank/">排名</a>
</li>
</ul>
{% include "oj/contest/_contest_header.html" %}
</div>
{% endblock %}
{% block js_block %}
<script type="x-template" id="template">
{% if contest.status %}
<strong><span>距离比赛开始还有</span></strong>
{% else %}
<strong><span>距离比赛结束还有</span></strong>
{% endif %}
<div class="day-timer timer-section">
<span class="time">%d</span> <span>%td</span>
</div>
<div class="hour-timer timer-section">
<span class="time">%h</span> : <span>%th</span>
</div>
<div class="min-timer timer-section">
<span class="time">%i</span> : <span>%ti</span>
</div>
<div class="second-timer timer-section">
<span class="time">%s</span> : <span>%ts</span>
</div>
</script>
<script src="/static/js/app/oj/contest/contestCountdown.js" defer="defer"></script>
{% endblock %}