t00-multiuser/server/templates/admin/index.ejs
2024-09-28 01:31:46 +01:00

53 lines
No EOL
1.3 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"><%= 0 %></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>
</div>
</div>
<%- include("../base/footer") %>