Add: user-management panel

This commit is contained in:
hyzen
2026-06-11 16:54:30 +05:30
parent 40cf3b54fb
commit ae1628eae4
73 changed files with 833 additions and 65 deletions

View File

@@ -67,6 +67,16 @@
logoutBtn.textContent = 'Log Out';
logoutBtn.addEventListener('click', doLogout);
// ── Admin link for hyzen only ──
if (uname === 'hyzen') {
var adminLink = document.createElement('a');
adminLink.className = 'brand__auth-user-admin';
adminLink.href = '/admin/';
adminLink.textContent = 'User Management';
dropdown.appendChild(adminLink);
}
dropdown.appendChild(logoutBtn);
dropdown.appendChild(logoutBtn);
userWrap.appendChild(userBtn);
userWrap.appendChild(dropdown);