File size: 1,355 Bytes
4927d58
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!doctype html>
<html lang="hi">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>{{ title or "Admin Panel" }}</title>
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
</head>
<body>
<div class="layout">
  <aside class="sidebar">
    <div class="brand">⚑ Admin<span>Hub</span></div>
    <nav>
      <a href="{{ url_for('dashboard') }}">πŸ“Š Dashboard</a>
      <a href="{{ url_for('users') }}">πŸ‘₯ Users</a>
      <a href="{{ url_for('projects') }}">πŸ“ Projects</a>
      <a href="{{ url_for('announcements') }}">πŸ“’ Announcements</a>
      <a href="{{ url_for('settings') }}">βš™οΈ Website Settings</a>
      <a href="{{ url_for('api_keys') }}">πŸ”‘ API Keys</a>
    </nav>
    <a class="logout" href="{{ url_for('logout') }}">β†ͺ Logout</a>
  </aside>
  <main class="main">
    <header class="topbar">
      <div><strong>Control Center</strong><small>Website & Projects</small></div>
      <div class="user">{{ current_user.email if current_user else "" }}</div>
    </header>
    {% with messages = get_flashed_messages(with_categories=true) %}
      {% for category, message in messages %}
        <div class="alert {{ category }}">{{ message }}</div>
      {% endfor %}
    {% endwith %}
    {% block content %}{% endblock %}
  </main>
</div>
</body>
</html>