mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: ScoreboardView API
This commit is contained in:
2 files changed
+198
-115
No files matched your search
@@ -8,11 +8,14 @@
|
||||
<div class="row"><div class="medium-12 columns scoreboard--{{ tdoc.rule }}">
|
||||
<div class="section visible">
|
||||
<div class="section__header">
|
||||
{%- for ext in ['HTML','CSV','Ghost'] -%}
|
||||
<a class="button" target="_blank" href="{{ url(type + '_scoreboard_download', tid=tdoc.docId, ext=ext.toLowerCase()) }}">
|
||||
{%- for ext in ['HTML','CSV'] -%}
|
||||
<a class="button" target="_blank" href="{{ url(type + '_scoreboard', tid=tdoc.docId, view='export', ext=ext.toLowerCase()) }}">
|
||||
<span class="icon icon-download"></span> {{ _('Export as {0}').format(ext) }}
|
||||
</a>
|
||||
{%- endfor -%}
|
||||
<a class="button" target="_blank" href="{{ url(type + '_scoreboard', tid=tdoc.docId, view='ghost') }}">
|
||||
<span class="icon icon-download"></span> {{ _('Export as Ghost') }}
|
||||
</a>
|
||||
{% if model.contest.isDone(tdoc) and tdoc.lockAt and handler.user.own(tdoc) and not tdoc.unlocked %}
|
||||
<form method="POST">
|
||||
<input type="hidden" name="operation" value="unlock">
|
||||
|
||||
Reference in new issue
Block a user