56 lines
No EOL
1.7 KiB
Text
56 lines
No EOL
1.7 KiB
Text
<%- 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>
|
|
<h3 class="card-text mb-0"><%= badgeCount %><small style="font-size:.75rem" class="ps-2"><%= userBadgeCount %> unlocked</small></h3>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col">
|
|
<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>
|
|
<a class="btn btn-primary btn-lg me-2 mb-3" href="/admin/userbadges">Manage Unlocked Badges</a>
|
|
<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>
|
|
</div>
|
|
</div>
|
|
<%- include("../base/footer") %> |