feat: refactor admin panel to banlist panel and update related routes and templates

This commit is contained in:
Lorenzo Venerandi
2026-03-08 12:49:55 +01:00
parent 6117824c19
commit 4e34b4b80a
5 changed files with 18 additions and 18 deletions

View File

@@ -412,11 +412,11 @@ async def htmx_search(
)
# ── Protected Admin Panel ───────────────────────────────────────────
# ── Protected Banlist Panel ───────────────────────────────────────────
@router.get("/htmx/admin")
async def htmx_admin(request: Request):
@router.get("/htmx/banlist")
async def htmx_banlist(request: Request):
if not verify_auth(request):
return HTMLResponse(
'<div class="table-container" style="text-align:center;padding:80px 20px;">'
@@ -428,7 +428,7 @@ async def htmx_admin(request: Request):
)
templates = get_templates()
return templates.TemplateResponse(
"dashboard/partials/admin_panel.html",
"dashboard/partials/banlist_panel.html",
{
"request": request,
"dashboard_path": _dashboard_path(request),