mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
修复参加比赛的错误
This commit is contained in:
1 parent
32ad47e031
commit
f40e4e2c74
10 files changed
+62
-38
No files matched your search
@@ -1,3 +1,4 @@
|
||||
{% set page_name = "contest_scoreboard" %}
|
||||
{% extends "layout/basic.html" %}
|
||||
{% block content %}
|
||||
<div class="row"><div class="medium-12 columns">
|
||||
@@ -21,25 +22,25 @@
|
||||
<tr>
|
||||
{%- for column in rows[0] -%}
|
||||
<th class="col--{{ column['type'] }}">
|
||||
{% if column['type'] == 'problem_detail' %}
|
||||
<a href="{{ reverse_url('contest_detail_problem' if tdoc['doc_type'] == vj4.model.document.TYPE_CONTEST else 'homework_detail_problem', tid=tdoc['doc_id'], pid=column['raw']['doc_id']) }}" data-tooltip="{{ column['raw']['title'] }}">{{ column['value'] }}</a>
|
||||
{% if column.type == 'problem_detail' %}
|
||||
<a href="{{ reverse_url('contest_detail_problem' , tid=tdoc._id, pid=column.raw._id) }}" data-tooltip="{{ column['raw']['title'] }}">{{ column['value'] }}</a>
|
||||
{% else %}
|
||||
{{ column['value'] }}
|
||||
{{ column.value }}
|
||||
{% endif %}
|
||||
</th>
|
||||
{%- endfor -%}
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{%- for row in rows[1:] -%}
|
||||
{%- for i, row in rows -%}{% if i>0 %}
|
||||
<tr>
|
||||
{%- for column in row -%}
|
||||
<td class="col--{{ rows[0][loop.index0]['type'] }}">
|
||||
{% if column['type'] == 'user' %}
|
||||
{{ user.render_inline(column['raw'], badge=false) }}
|
||||
{% elif column['type'] == 'record' %}
|
||||
{% if column['raw'] %}
|
||||
<a href="{{ reverse_url('record_detail', rid=column['raw']) }}">{{ column['value']|nl2br }}</a>
|
||||
{% if column.type == 'user' %}
|
||||
{{ user.render_inline(column.raw, badge=false) }}
|
||||
{% elif column.type == 'record' %}
|
||||
{% if column.raw %}
|
||||
<a href="/r/{{ column.raw }}">{{ column.value|nl2br }}</a>
|
||||
{% else %}
|
||||
{{ column['value']|nl2br }}
|
||||
{% endif %}
|
||||
@@ -49,7 +50,7 @@
|
||||
</td>
|
||||
{%- endfor -%}
|
||||
</tr>
|
||||
{%- endfor -%}
|
||||
{% endif %}{%- endfor -%}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user