Feat: Show admin status on player page

Co-authored-by: mathieumoran1 <[email protected]>
This commit is contained in:
Cursor Agent
2025-12-22 10:32:50 +00:00
co-authored by mathieumoran1
parent d39b5c4b2f
commit 9fb24a8244
2 changed files with 4 additions and 1 deletions
+2
View File
@@ -889,6 +889,8 @@ window.onload = async function () {
if (decoded.admin) { if (decoded.admin) {
const adminLink = document.getElementById('admin-control-link'); const adminLink = document.getElementById('admin-control-link');
if (adminLink) adminLink.classList.remove('d-none'); if (adminLink) adminLink.classList.remove('d-none');
const adminStatus = document.getElementById('player-admin-status');
if (adminStatus) adminStatus.classList.remove('d-none');
} }
const logoffBtn = document.getElementById('log-off'); const logoffBtn = document.getElementById('log-off');
+2 -1
View File
@@ -151,7 +151,8 @@
</div> </div>
</div> </div>
<div class="d-flex flex-column gap-2"> <!-- Admin-only debug/status (Source + Progress) -->
<div id="player-admin-status" class="d-none d-flex flex-column gap-2">
<div class="d-flex flex-wrap gap-2 align-items-center"> <div class="d-flex flex-wrap gap-2 align-items-center">
<span class="badge bg-secondary">Source</span> <span class="badge bg-secondary">Source</span>
<span id="source-label" class="badge bg-light text-dark badge-src">—</span> <span id="source-label" class="badge bg-light text-dark badge-src">—</span>