core&ui: handle contest status display

This commit is contained in:
undefined committed 2022-06-03 02:58:27 +08:00
1 parent 069f420310
commit 78b1141a02
12 files changed
+29 -31

No files matched your search

@@ -7,7 +7,7 @@
{% endif %}
<div>
<ol class="menu">
{% if model.contest.isOngoing(tdoc) %}
{% if model.contest.isOngoing(tdoc, tsdoc) %}
{% if page_name == 'contest_detail_problem' %}
<li class="menu__item scratchpad--hide"><a class="menu__link highlight" name="problem-sidebar__open-scratchpad" href="javascript:;" data-global-hotkey="alt+e">
<span class="icon icon-enlarge"></span> {{ _('Open Scratchpad') }} (Alt+E)