core: contest_scoreboard.lock

This commit is contained in:
undefined committed 2022-11-15 16:45:11 +08:00
1 parent 5271a7e590
commit d9fdcc9b7c
5 files changed
+68 -48

No files matched your search

@@ -12,6 +12,14 @@
<a class="button" href="{{ url(type + '_scoreboard_download', tid=tdoc.docId, ext='csv') }}">
<span class="icon icon-download"></span> {{ _('Export as CSV') }}
</a>
{% if model.contest.isEnded(tdoc) and tdoc.lockAt and handler.user.own(tdoc) and not tdoc.unlocked %}
<form method="POST">
<input type="hidden" name="operation" value="unlock">
<button type="submit" class="button" href="{{ url(type + '_scoreboard_download', tid=tdoc.docId, ext='csv') }}">
<span class="icon icon-feeling-lucky"></span> {{ _('Unlock scoreboard') }}
</button>
</form>
{% endif %}
</div>
{% if model.contest.isLocked(tdoc) %}
<div class="section__body no-padding">
@@ -19,6 +27,12 @@
{{ _('Scoreboard locked at {0}').format(datetimeSpan(tdoc.lockAt))|safe }}
</blockquote>
</div>
{% elif model.contest.isEnded(tdoc) and tdoc.lockAt and not tdoc.unlocked %}
<div class="section__body no-padding">
<blockquote class="note">
{{ _('Please wait until contest host unlock the scoreboard.') }}
</blockquote>
</div>
{% endif %}
<div class="section__body no-padding overflow-hidden-horizontal">
<table class="data-table">