54 lines
2.0 KiB
HTML
54 lines
2.0 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>User Management</title>
|
|
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">
|
|
</head>
|
|
<body>
|
|
<div class="container mt-5">
|
|
<h1 class="text-center">User Management</h1>
|
|
<table class="table table-striped mt-4">
|
|
<thead>
|
|
<tr>
|
|
<th>User ID</th>
|
|
<th>Permission Level</th>
|
|
<th>Points</th>
|
|
<th>Ban Status</th>
|
|
<th>AskMultus Usage</th>
|
|
<th>Filter Value</th>
|
|
<th>Rank</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for user in users %}
|
|
<tr>
|
|
<td>{{ user.user_id }}</td>
|
|
<td>{{ user.permission }}</td>
|
|
<td>{{ user.points }}</td>
|
|
<td>{{ 'Banned' if user.ban else 'Active' }}</td>
|
|
<td>{{ user.askmultus }}</td>
|
|
<td>{{ user.filter_value }}</td>
|
|
<td>
|
|
{% if user.permission == 10 %}
|
|
Owner
|
|
{% elif user.permission == 8 %}
|
|
Admin
|
|
{% elif user.permission == 5 %}
|
|
Mod
|
|
{% else %}
|
|
User
|
|
{% endif %}
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
<a href="{{ url_for('index') }}" class="btn btn-secondary btn-block mt-3">Back to Dashboard</a>
|
|
</div>
|
|
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.5.2/dist/js/bootstrap.bundle.min.js"></script>
|
|
</body>
|
|
</html>
|