fixing server players

This commit is contained in:
Silversthorn 2024-07-28 20:09:59 +02:00
parent a2ec048422
commit ae61c22d26

View File

@ -11,13 +11,13 @@
<tbody id="player-body"> <tbody id="player-body">
{% for player in data['cached_players'] %} {% for player in data['cached_players'] %}
<tr id="playerItem-{{ player['name'] }}" class="playerItem-- text-center"> <tr id="playerItem-{{ player['name'] }}" class="playerItem-- text-center">
<td class="no-scroll" style="overflow: scroll;"> <td class="no-scroll">
<strong> {{ player['name'] }}</strong> <strong> {{ player['name'] }}</strong>
</td> </td>
{% if player['status'] == 'Online' %} {% if player['status'] == 'Online' %}
<td class="no-scroll" style="overflow: scroll;"><span class="text-success"><i class="fas fa-signal"></i> {{ player['status'] }}</span></td> <td class="no-scroll"><span class="text-success"><i class="fas fa-signal"></i> {{ player['status'] }}</span></td>
{% elif player['status'] == 'Offline' %} {% elif player['status'] == 'Offline' %}
<td class="no-scroll" style="overflow: scroll;"><span class="text-warning"><i class="fa-regular fa-circle-xmark"></i><span class="offline-status">&nbsp;{{ player['status'] }}</span><span class="conn-break"> Last connection :<br> {{ player['last_seen'] }}</span></span></td> <td class="no-scroll"><span class="text-warning"><i class="fa-regular fa-circle-xmark"></i><span class="offline-status">&nbsp;{{ player['status'] }}</span><span class="conn-break"> Last connection :<br> {{ player['last_seen'] }}</span></span></td>
{% end %} {% end %}
<td class="buttons text-center"> <td class="buttons text-center">
{% if data['server_stats']['running'] %} {% if data['server_stats']['running'] %}