Files
DarkflameServer/dDashboardServer/templates/server_status.jinja2
Aaron Kimbrell 5692e43381 feat(dashboard): show the UGC server on the home page and Server Health
Server Status gets a UGC row while master starts it, and staff with
health_view a UGC Server card: up time, waiting/made/failed, busy workers and
storage, linking to /ugc. Server Health adds UGC to the uptime history and a
Servers table with every server's process, memory, CPU and last report.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-28 22:31:05 -05:00

37 lines
1.4 KiB
Django/Jinja

<div class="col-md-6 col-lg-4">
<div class="card h-100">
<div class="card-header"><h5 class="mb-0">Server Status</h5></div>
<div class="card-body">
<div class="d-flex justify-content-between align-items-center mb-3">
<span>Auth Server</span>
{% if auth.online %}
<span class="badge text-bg-success" id="auth-status">Online</span>
{% else %}
<span class="badge text-bg-danger" id="auth-status">Offline</span>
{% endif %}
</div>
<div class="d-flex justify-content-between align-items-center mb-3">
<span>Chat Server</span>
{% if chat.online %}
<span class="badge text-bg-success" id="chat-status">Online</span>
{% else %}
<span class="badge text-bg-danger" id="chat-status">Offline</span>
{% endif %}
</div>
{# Only while master starts it (enable_ugc_server); the page shows it when that changes #}
<div class="d-flex justify-content-between align-items-center mb-3{% if not ugc.enabled %} d-none{% endif %}" id="ugc-status-row">
<span>UGC Server</span>
{% if ugc.online %}
<span class="badge text-bg-success" id="ugc-status">Online</span>
{% else %}
<span class="badge text-bg-danger" id="ugc-status">Offline</span>
{% endif %}
</div>
<div class="d-flex justify-content-between align-items-center">
<span>Active Worlds</span>
<span class="badge text-bg-primary" id="world-count">{{ stats.worlds }}</span>
</div>
</div>
</div>
</div>