Spaces:
Running
Running
File size: 3,618 Bytes
4f48a4e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Manage Users - God Mode</title>
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap"
rel="stylesheet">
<script src="https://unpkg.com/@phosphor-icons/web"></script>
<script>if (localStorage.getItem('proofly-theme') === 'dark') document.documentElement.setAttribute('data-theme', 'dark');</script>
<style>
.admin-table {
width: 100%;
border-collapse: collapse;
background: var(--bg-card);
border-radius: var(--radius-md);
overflow: hidden;
border: 1px solid var(--border-color);
}
.admin-table th {
text-align: left;
padding: 1rem;
border-bottom: 2px solid var(--border-color);
color: var(--text-muted);
}
.admin-table td {
padding: 1rem;
border-bottom: 1px solid var(--border-color);
color: var(--text-main);
}
.badge {
padding: 0.25rem 0.6rem;
border-radius: 20px;
font-size: 0.75rem;
font-weight: 700;
}
.badge-admin {
background: rgba(37, 99, 235, 0.1);
color: #2563eb;
}
</style>
</head>
<body>
<div class="app-container">
<aside class="sidebar">
<div class="sidebar-top">
<a href="/admin" class="nav-btn" title="Admin Home"><i class="ph ph-shield-check"></i></a>
<div class="spacer"></div>
<button class="icon-btn active-icon" title="Users"><i class="ph ph-users"></i></button>
</div>
</aside>
<main class="main-content">
<header class="top-header">
<div class="header-center"><span class="daily-text">System User Registry</span></div>
</header>
<div style="padding: 2rem; max-width: 1200px; margin: 0 auto;">
<table class="admin-table">
<thead>
<tr>
<th>Username</th>
<th>Email</th>
<th>Role</th>
<th>Created At</th>
</tr>
</thead>
<tbody>
{% for user in users %}
<tr>
<td><strong>{{ user.username }}</strong></td>
<td>{{ user.email }}</td>
<td>
{% if user.is_admin %}
<span class="badge badge-admin">ADMIN</span>
{% else %}
<span class="badge"
style="background:var(--bg-input); color:var(--text-muted);">USER</span>
{% endif %}
</td>
<td>{{ user.created_at.strftime('%Y-%m-%d %H:%M') }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</main>
</div>
</body>
</html> |