core: fix contest paginator

This commit is contained in:
undefined committed 2021-05-03 02:00:20 +08:00
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>