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

@@ -48,7 +48,7 @@
<div class="row">
<div class="medium-9 columns">
{%- for tdoc in tdocs -%}
{% if model.contest.isOngoing(tdoc) %}
{% if model.contest.isOngoing(tdoc, tsdoc) %}
{{ render_important_contest('live', 'Live...', tdoc) }}
{% elif model.contest.isUpcoming(tdoc) %}
{{ render_important_contest('ready', 'Ready (☆▽☆)', tdoc) }}