Add admin Settings page with DB health check, stats, and system reset

This commit is contained in:
Troll (Hermes Agent) 2026-08-01 20:55:20 +00:00
parent 2b960bd3d5
commit 51d1b4a4d9
3 changed files with 333 additions and 5 deletions

View file

@ -93,6 +93,13 @@
font-size:.9rem;
}
.topbar button.reset-sm:hover{background:#b91c1c;}
.topbar a{
color:#93c5fd;
text-decoration:none;
}
.topbar a.settings{
color:#10b981;
}
/* Hidden legacy reset box (kept CSS class for compatibility, not displayed) */
.reset-box{display:none;}
@ -100,11 +107,9 @@
</head>
<body>
<div class="container">
<!-- Topbar: Reset System button and Log out link -->
<!-- Topbar: Settings link and Log out link -->
<div class="topbar">
<form method="POST" action="{{ url_for('admin_reset_system') }}" onsubmit="return confirm('ARE YOU SURE? This will delete ALL requests and ALL uploaded files. This cannot be undone.')">
<button type="submit" class="reset-sm">Reset System</button>
</form>
<a href="{{ url_for('admin_settings') }}" class="settings">Settings</a>
<a href="{{ url_for('admin_logout') }}" class="logout">Log out</a>
</div>