fix: merged status and status-content

This commit is contained in:
Luis Pereira 2026-01-12 23:40:54 +00:00 committed by Brian O'Reilly
parent 2118f4ed5a
commit ff651e6a36
3 changed files with 33 additions and 67 deletions

View File

@ -1316,11 +1316,18 @@
:framesetp t :framesetp t
:title "About - Asteroid Radio")) :title "About - Asteroid Radio"))
(define-page-with-limit status-page #@"/status" (:limit-group "public")
"Status page content"
(clip:process-to-string
(load-template "status")
:title "Status - Asteroid Radio"))
;; Status content (for frameset mode) ;; Status content (for frameset mode)
(define-page-with-limit status-content #@"/status-content" (:limit-group "public") (define-page-with-limit status-content #@"/status-content" (:limit-group "public")
"Status page content (displayed in content frame)" "Status page content (displayed in content frame)"
(clip:process-to-string (clip:process-to-string
(load-template "status-content") (load-template "status")
:framesetp t
:title "Status - Asteroid Radio")) :title "Status - Asteroid Radio"))
(define-api-with-limit asteroid/status () () (define-api-with-limit asteroid/status () ()

View File

@ -1,57 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>Asteroid Radio - Status</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="/asteroid/static/asteroid.css">
<script src="/asteroid/static/js/auth-ui.js"></script>
</head>
<body>
<div class="container">
<header>
<h1 style="display: flex; align-items: center; justify-content: center; gap: 15px;">
<img src="/asteroid/static/asteroid.png" alt="Asteroid" style="height: 50px; width: auto;">
<span>📡 SYSTEM STATUS</span>
<img src="/asteroid/static/asteroid.png" alt="Asteroid" style="height: 50px; width: auto;">
</h1>
<nav class="nav">
<a href="/asteroid/content" target="_self">Home</a>
<a href="/asteroid/player-content" target="_self">Player</a>
<a href="/asteroid/about-content" target="_self">About</a>
<a href="/asteroid/status-content" target="_self">Status</a>
<a href="/asteroid/profile" target="_self" data-show-if-logged-in>Profile</a>
<a href="/asteroid/admin" target="_self" data-show-if-admin>Admin</a>
<a href="/asteroid/login" target="_self" data-show-if-logged-out>Login</a>
<a href="/asteroid/register" target="_self" data-show-if-logged-out>Register</a>
<a href="/asteroid/logout" data-show-if-logged-in class="btn-logout">Logout</a>
</nav>
</header>
<main style="max-width: 800px; margin: 0 auto; padding: 20px;">
<section style="margin-bottom: 30px;">
<h2 style="color: #00ff00; border-bottom: 2px solid #00ff00; padding-bottom: 10px;">🟢 Server Status</h2>
<p style="line-height: 1.6;">
Asteroid Radio is currently online and broadcasting.
</p>
</section>
<section style="margin-bottom: 30px;">
<h2 style="color: #00ff00; border-bottom: 2px solid #00ff00; padding-bottom: 10px;">📊 Stream Information</h2>
<ul style="line-height: 1.8;">
<li><strong>Status:</strong> 🟢 Live</li>
<li><strong>Formats:</strong> AAC 96kbps, MP3 128kbps, MP3 64kbps</li>
<li><strong>Server:</strong> Icecast</li>
</ul>
</section>
<section style="margin-bottom: 30px;">
<h2 style="color: #00ff00; border-bottom: 2px solid #00ff00; padding-bottom: 10px;"> Additional Information</h2>
<p style="line-height: 1.6;">
For detailed system status and administration, please visit the <a href="/asteroid/admin" style="color: #00ff00;" data-show-if-admin>Admin Dashboard</a>.
</p>
</section>
</main>
</div>
</body>
</html>

View File

@ -15,16 +15,32 @@
<span>📡 SYSTEM STATUS</span> <span>📡 SYSTEM STATUS</span>
<img src="/asteroid/static/asteroid.png" alt="Asteroid" style="height: 50px; width: auto;"> <img src="/asteroid/static/asteroid.png" alt="Asteroid" style="height: 50px; width: auto;">
</h1> </h1>
<nav class="nav"> <nav class="nav">
<a href="/asteroid/frameset">Home</a> <c:if test="(not framesetp)">
<a href="/asteroid/player">Player</a> <c:then>
<a href="/asteroid/about">About</a> <a href="/asteroid">Home</a>
<a href="/asteroid/status">Status</a> <a href="/asteroid/player">Player</a>
<a href="/asteroid/profile" data-show-if-logged-in>Profile</a> <a href="/asteroid/about">About</a>
<a href="/asteroid/admin" data-show-if-admin>Admin</a> <a href="/asteroid/status">Status</a>
<a href="/asteroid/login" data-show-if-logged-out>Login</a> <a href="/asteroid/profile" data-show-if-logged-in>Profile</a>
<a href="/asteroid/register" data-show-if-logged-out>Register</a> <a href="/asteroid/admin" data-show-if-admin>Admin</a>
<a href="/asteroid/logout" data-show-if-logged-in class="btn-logout" onclick="event.preventDefault(); fetch('/asteroid/logout').then(() => window.location.href='/asteroid/frameset');">Logout</a> <a href="/asteroid/login" data-show-if-logged-out>Login</a>
<a href="/asteroid/register" data-show-if-logged-out>Register</a>
<a href="/asteroid/logout" data-show-if-logged-in class="btn-logout">Logout</a>
</c:then>
<c:else>
<a href="/asteroid/content" target="_self">Home</a>
<a href="/asteroid/player-content" target="_self">Player</a>
<a href="/asteroid/about-content" target="_self">About</a>
<a href="/asteroid/status-content" target="_self">Status</a>
<a href="/asteroid/profile" target="_self" data-show-if-logged-in>Profile</a>
<a href="/asteroid/admin" target="_self" data-show-if-admin>Admin</a>
<a href="/asteroid/login" target="_self" data-show-if-logged-out>Login</a>
<a href="/asteroid/register" target="_self" data-show-if-logged-out>Register</a>
<a href="/asteroid/logout" data-show-if-logged-in class="btn-logout">Logout</a>
</c:else>
</c:if>
</nav> </nav>
</header> </header>