highlight searched player

This commit is contained in:
2019-06-09 16:20:42 +02:00
parent 3c69e68385
commit 9a54da7124
2 changed files with 24 additions and 13 deletions

View File

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