2024-09-26 00:47:08 +01:00
|
|
|
<%- include("../base/header", { title: "Admin Dashboard", userId: session.userId, isAdmin: true }) %>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col">
|
|
|
|
<nav aria-label="breadcrumb">
|
|
|
|
<ol class="breadcrumb">
|
|
|
|
<li class="breadcrumb-item active"><a>Admin</a></li>
|
|
|
|
</ol>
|
|
|
|
</nav>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col">
|
|
|
|
<h1>Admin Dashboard</h1>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row row-cols-3 my-5">
|
|
|
|
<div class="col mb-3">
|
|
|
|
<div class="card">
|
|
|
|
<div class="card-body">
|
|
|
|
<h4 class="card-title">Users</h4>
|
|
|
|
<h3 class="card-text mb-0"><%= userCount %></h3>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col mb-3">
|
|
|
|
<div class="card">
|
|
|
|
<div class="card-body">
|
|
|
|
<h4 class="card-title">Parties</h4>
|
|
|
|
<h3 class="card-text mb-0"><%= partyCount %></h3>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col mb-3">
|
|
|
|
<div class="card">
|
|
|
|
<div class="card-body">
|
|
|
|
<h4 class="card-title">Badges</h5>
|
2024-10-12 11:52:13 +01:00
|
|
|
<h3 class="card-text mb-0"><%= badgeCount %><small style="font-size:.75rem" class="ps-2"><%= userBadgeCount %> unlocked</small></h3>
|
2024-09-26 00:47:08 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col">
|
2024-09-28 01:31:46 +01:00
|
|
|
<a class="btn btn-primary btn-lg me-2 mb-3" href="/admin/users">Manage Users</a>
|
|
|
|
<a class="btn btn-primary btn-lg me-2 mb-3" href="/admin/parties">Manage Parties</a>
|
|
|
|
<a class="btn btn-primary btn-lg me-2 mb-3" href="/admin/badges">Manage Badges</a>
|
2024-10-12 11:52:13 +01:00
|
|
|
<a class="btn btn-primary btn-lg me-2 mb-3" href="/admin/userbadges">Manage Unlocked Badges</a>
|
2024-09-28 14:31:02 +01:00
|
|
|
<a class="btn btn-primary btn-lg me-2 mb-3" href="/admin/websessions">Web Sessions</a>
|
|
|
|
<a class="btn btn-primary btn-lg me-2 mb-3" href="/admin/wssessions">Websocket Sessions</a>
|
2024-09-26 00:47:08 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2024-10-13 14:13:33 +01:00
|
|
|
<%- include("../base/footer", { apiKey: session.apiKey, username: session.username }) %>
|