UBS/views/admin/dashboard.ejs

76 lines
2.5 KiB
Plaintext

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="/assets/css/bootstrap.min.css">
<link href="/assets/fa/css/all.min.css" rel="stylesheet" type="text/css" />
<title>UBS Admin Dashboard</title>
</head>
<body class="bg-dark text-light">
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<div class="container-fluid">
<a class="navbar-brand" href="#">UBS Admin</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav"
aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav ms-auto">
<div class="d-flex">
<a href="/admin/import" class="btn btn-secondary me-2">
<i class="fas fa-file-import"></i> Import Bans
</a>
<a href="/admin/create" class="btn btn-primary">
<i class="fas fa-plus-circle"></i> New Ban
</a>
</div>
<li class="nav-item">
<a class="nav-link" href="#">Welcome, <%= session.user.username %></a>
</li>
<li class="nav-item">
<a class="nav-link" href="/admin/logout">Logout</a>
</li>
</ul>
</div>
</div>
</nav>
<div class="container mt-5">
<h2 class="mb-4 d-inline">Bans</h2>
<div id="pagination" class="mb-4"></div>
<div class="mb-3">
<label for="itemsToShowDropdown" class="form-label">Items to show:</label>
<select id="itemsToShowDropdown" class="form-select" style="width: auto; display: inline-block;">
<!-- Options will be populated by the script -->
</select>
</div>
</div>
<table class="table table-dark table-striped">
<thead>
<tr>
<th scope="col">ID</th>
<th scope="col">Roblox ID</th>
<th scope="col">Discord ID</th>
<th scope="col">Roblox Username</th>
<th scope="col">Discord Username</th>
<th scope="col">Reason (Short)</th>
<th scope="col">Reason (Long)</th>
<th scope="col">Reasons Flag</th>
<th scope="col">Moderator</th>
<th scope="col">Ban Timestamp</th>
<th scope="col">Expires Timestamp</th>
<th scope="col">Actions</th>
</tr>
</thead>
<tbody id="bansTableBody">
<!-- Rows will be populated by the script -->
</tbody>
</table>
<script src="/assets/js/bootstrap.bundle.min.js"></script>
<script src="/assets/js/flags.js"></script>
<script src="/assets/js/admin/dashboard.js"></script>
</body>
</html>