mirror of
https://github.com/FAUSheppy/open-web-leaderboard.git
synced 2025-12-06 15:11:35 +01:00
fix rank display with new jinja
This commit is contained in:
@@ -21,19 +21,20 @@
|
|||||||
<div class=leaderboard-container>
|
<div class=leaderboard-container>
|
||||||
<div class=colum-names>{{ columNames }}</div>
|
<div class=colum-names>{{ columNames }}</div>
|
||||||
{% for player in playerList %}
|
{% for player in playerList %}
|
||||||
{% if loop.index % 2 == 0 %}
|
{% set count = loop.index + start %}
|
||||||
|
{% if count % 2 == 0 %}
|
||||||
<div
|
<div
|
||||||
{% if searchName == player.name %}
|
{% if searchName == player.name %}
|
||||||
style="background: yellow;"
|
style="background: yellow;"
|
||||||
{% endif %}
|
{% endif %}
|
||||||
class=line-even>{{ player.getLineHTML(loop.index) }}
|
class=line-even>{{ player.getLineHTML(count) }}
|
||||||
</div>
|
</div>
|
||||||
{% else %}
|
{% else %}
|
||||||
<div
|
<div
|
||||||
{% if searchName == player.name %}
|
{% if searchName == player.name %}
|
||||||
style="background: yellow;"
|
style="background: yellow;"
|
||||||
{% endif %}
|
{% endif %}
|
||||||
class=line-odd>{{ player.getLineHTML(loop.index) }}
|
class=line-odd>{{ player.getLineHTML(count) }}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|||||||
Reference in New Issue
Block a user