Fix player status display on players list page
This commit is contained in:
@@ -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 %}
|
||||||
|
|||||||
Reference in New Issue
Block a user