Fix player status display on players list page

This commit is contained in:
2025-11-28 15:12:36 +02:00
parent f88e332186
commit 610227457c

View File

@@ -162,16 +162,15 @@
{{ player.orientation or 'Landscape' }} {{ player.orientation or 'Landscape' }}
</td> </td>
<td> <td>
{% set status = player_statuses.get(player.id, {}) %} {% if player.is_online %}
{% if status.get('is_online') %}
<span class="status-badge online">Online</span> <span class="status-badge online">Online</span>
{% else %} {% else %}
<span class="status-badge offline">Offline</span> <span class="status-badge offline">Offline</span>
{% endif %} {% endif %}
</td> </td>
<td> <td>
{% if player.last_heartbeat %} {% if player.last_seen %}
{{ player.last_heartbeat.strftime('%Y-%m-%d %H:%M') }} {{ player.last_seen.strftime('%Y-%m-%d %H:%M') }}
{% else %} {% else %}
<span class="text-muted">Never</span> <span class="text-muted">Never</span>
{% endif %} {% endif %}