modified: app.py

modified:   templates/index.html
	new file:   templates/user.html
This commit is contained in:
SimolZimol
2024-09-03 10:18:23 +02:00
parent 8a2245a61b
commit 12f90728eb
3 changed files with 85 additions and 1 deletions

53
templates/user.html Normal file
View File

@@ -0,0 +1,53 @@
<!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>