mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: fix contest paginator
This commit is contained in:
1 parent
0d7c53b927
commit
2a3933de1a
14 files changed
+46
-40
No files matched your search
@@ -1,3 +1,4 @@
|
||||
{% import "components/paginator.html" as paginator with context %}
|
||||
{% extends "layout/basic.html" %}
|
||||
{% set type = 'homework' if tdoc.docType == 60 else 'contest' %}
|
||||
{% block content %}
|
||||
@@ -32,7 +33,7 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{%- for row in rows -%}{% if loop.index0>0 %}
|
||||
{%- for row in rows -%}{% if loop.index0 > 0 %}
|
||||
<tr>
|
||||
{%- for column in row -%}
|
||||
<td class="col--{{ rows[0][loop.index0]['type'] }}">
|
||||
@@ -49,6 +50,7 @@
|
||||
{% endif %}{%- endfor -%}
|
||||
</tbody>
|
||||
</table>
|
||||
{{ paginator.render(page, nPages) }}
|
||||
</div>
|
||||
</div>
|
||||
</div></div>
|
||||
|
||||
Reference in new issue
Block a user