Paginate contest summary

This commit is contained in:
cuom1999 2023-11-23 23:16:01 -06:00
parent 77b441eb5e
commit 159b2b4cc0
3 changed files with 68 additions and 46 deletions

View file

@ -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 %}