mirror of
https://github.com/FAUSheppy/open-web-leaderboard.git
synced 2025-12-06 07:01:36 +01:00
highlight searched player
This commit is contained in:
@@ -23,9 +23,19 @@
|
||||
{% set count = start+1 %}
|
||||
{% for player in playerList %}
|
||||
{% if count % 2 == 0 %}
|
||||
<div class=line-even>{{ player.getLineHTML(count) }}</div>
|
||||
<div
|
||||
{% if searchName == player.name %}
|
||||
style="background: yellow;"
|
||||
{% endif %}}
|
||||
class=line-even>{{ player.getLineHTML(count) }}
|
||||
</div>
|
||||
{% else %}
|
||||
<div class=line-odd>{{ player.getLineHTML(count) }}</div>
|
||||
<div
|
||||
{% if searchName == player.name %}
|
||||
style="background: yellow;"
|
||||
{% endif %}}
|
||||
class=line-odd>{{ player.getLineHTML(count) }}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% set count = count + 1 %}
|
||||
{% endfor %}
|
||||
|
||||
Reference in New Issue
Block a user