Paginate contest summary
This commit is contained in:
parent
77b441eb5e
commit
159b2b4cc0
3 changed files with 68 additions and 46 deletions
|
@ -42,7 +42,7 @@
|
|||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for rank, item in total_rank %}
|
||||
{% for rank, item in page_obj %}
|
||||
<tr>
|
||||
<td>
|
||||
{{ rank }}
|
||||
|
@ -68,4 +68,9 @@
|
|||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
{% if page_obj and page_obj.num_pages > 1 %}
|
||||
<div style="margin-top: 10px;">
|
||||
{% include "list-pages.html" %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue