mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-10-11 07:13:44 +00:00
About says what build is running (a release, or a local development or CI build with its commit, branch and uncommitted changes), the newest release with its notes, how many commits behind the build is with the compare link, the last check and any error, and Check now. The home page's Server Status card shows the build and an Update available badge. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
45 lines
1.9 KiB
Django/Jinja
45 lines
1.9 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 mb-3">
|
|
<span>Active Worlds</span>
|
|
<span class="badge text-bg-primary" id="world-count">{{ stats.worlds }}</span>
|
|
</div>
|
|
{# The running build, and whether GitHub has something newer (the About page has the details) #}
|
|
<div class="d-flex justify-content-between align-items-center gap-2">
|
|
<span>Version</span>
|
|
<a href="/about" class="text-decoration-none text-end" title="{{ update.summary }}">
|
|
<span class="small text-body-secondary">{{ update.build.label }}</span>
|
|
{% if update.updateAvailable %}<span class="badge text-bg-success ms-1">Update available</span>{% endif %}
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|