Files
DarkflameServer/dDashboardServer/templates/status_widget.jinja2
Aaron Kimbrell e213a7aeff feat: web dashboard and playground work
The NexusDashboard-parity dashboard (dDashboardServer) and everything built on it on the experimental branch:
accounts, characters, properties and moderation tools, permissions shared with in-game slash commands, economy
reports, World 3D and property 3D views with client scenery, scheduled events (features, vanity changes, live
events, announcements, restarts), vanity files and events, the CDClient browser, the message inspector with saved
captures, chat filter tools, community challenges, live ops, the AI moderator helper, and the server-side changes
they need.

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

28 lines
1.7 KiB
Django/Jinja

<!DOCTYPE html>
{# A small status box for other sites to show in an iframe (PublicRoutes.cpp). No scripts: it reloads itself when the status is next refreshed. #}
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="refresh" content="{{ refresh }}">
<title>{{ name }} status</title>
<style>
:root { color-scheme: dark; --bg: #1e2126; --fg: #e9ecef; --muted: #adb5bd; --border: #373b3e; --up: #20c997; --down: #dc3545; }
{% if light %}:root { color-scheme: light; --bg: #ffffff; --fg: #212529; --muted: #6c757d; --border: #dee2e6; --up: #198754; --down: #dc3545; }{% endif %}
html, body { margin: 0; background: var(--bg); color: var(--fg); font: 14px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a.box { display: block; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; color: inherit; text-decoration: none; }
.name { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--down); flex: none; }
.dot.up { background: var(--up); }
.line { color: var(--muted); margin-top: 2px; }
</style>
</head>
<body>
<a class="box" href="/status" target="_blank" rel="noopener">
<div class="name"><span class="dot{% if online %} up{% endif %}"></span>{{ name }}</div>
<div class="line">{% if online %}Online{% else %}Offline{% endif %}{% if show_players %} &middot; {{ players }} player{% if players != 1 %}s{% endif %} online{% endif %}</div>
{% if show_uptime and uptime_text != "" %}<div class="line">Up for {{ uptime_text }}</div>{% endif %}
</a>
</body>
</html>