Refactoring pagination
This commit is contained in:
parent
568ba89894
commit
973b2496ce
1 changed files with 3 additions and 3 deletions
|
@ -48,9 +48,9 @@
|
||||||
</li>
|
</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{# Things are kinda messy here #}
|
{# Things are kinda messy here #}
|
||||||
{% for i in range(pagination[2] - pagination[3] - 1, pagination[2] - 1) %}
|
{% for i in range(pagination[2] - pagination[3], pagination[2]) %}
|
||||||
<li><a href="{{ url_for('scoreboard.index', page=i + 1,
|
<li><a href="{{ url_for('scoreboard.index', page=i,
|
||||||
result_name=request.args.get('result_name')) }}">{{ i + 1 }}</a></li>
|
result_name=request.args.get('result_name')) }}">{{ i }}</a></li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
<li class="active"><a href="{{ url_for('scoreboard.index', page=pagination[2],
|
<li class="active"><a href="{{ url_for('scoreboard.index', page=pagination[2],
|
||||||
result_name=request.args.get('result_name')) }}">{{ pagination[2] }}</a></li>
|
result_name=request.args.get('result_name')) }}">{{ pagination[2] }}</a></li>
|
||||||
|
|
Loading…
Reference in a new issue