mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: contest: export as ghost
This commit is contained in:
1 parent
6ddaa8cf0c
commit
9da8321677
2 files changed
+53
-10
No files matched your search
@@ -5,7 +5,7 @@
|
||||
|
||||
{% macro renderRecord(cell, canView) %}
|
||||
<a href="{{ url('record_detail', rid=cell.raw) if canView else '' }}"{% if cell.hover %} data-tooltip="{{ cell.hover }}"{% endif %}>
|
||||
{%- if cell.status == status.STATUS_JUDGING -%}
|
||||
{%- if cell.status == STATUS.STATUS_WAITING -%}
|
||||
<span style="font-weight:bold;color:yellow">?</span>
|
||||
{%- else -%}
|
||||
{%- set _color = utils.status.getScoreColor(cell.score|default(cell.value)) -%}
|
||||
@@ -18,12 +18,11 @@
|
||||
<div class="row"><div class="medium-12 columns scoreboard--{{ tdoc.rule }}">
|
||||
<div class="section visible">
|
||||
<div class="section__header">
|
||||
<a class="button" target="_blank" href="{{ url(type + '_scoreboard_download', tid=tdoc.docId, ext='html') }}">
|
||||
<span class="icon icon-download"></span> {{ _('Export as HTML') }}
|
||||
</a>
|
||||
<a class="button" href="{{ url(type + '_scoreboard_download', tid=tdoc.docId, ext='csv') }}">
|
||||
<span class="icon icon-download"></span> {{ _('Export as CSV') }}
|
||||
</a>
|
||||
{%- for ext in ['HTML','CSV','Ghost'] -%}
|
||||
<a class="button" target="_blank" href="{{ url(type + '_scoreboard_download', tid=tdoc.docId, ext=ext.toLowerCase()) }}">
|
||||
<span class="icon icon-download"></span> {{ _('Export as '+ext) }}
|
||||
</a>
|
||||
{%- endfor -%}
|
||||
{% 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