| <!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> |
|
|