58 lines
No EOL
1.5 KiB
HTML
58 lines
No EOL
1.5 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta
|
|
name="viewport"
|
|
content="width=device-width, initial-scale=1.0, viewport-fit=cover"
|
|
/>
|
|
<title>{% block title %}Admin{% endblock %}</title>
|
|
<link
|
|
rel="stylesheet"
|
|
href="{{ url_for('static', filename='css/style.css') }}"
|
|
/>
|
|
<link
|
|
rel="preconnect"
|
|
href="https://fonts.googleapis.com"
|
|
crossorigin
|
|
/>
|
|
<link
|
|
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap"
|
|
rel="stylesheet"
|
|
/>
|
|
</head>
|
|
<body>
|
|
<header class="navbar">
|
|
<div class="navbar-content">
|
|
<a class="brand" href="{{ url_for('index') }}">Admin Panel</a>
|
|
<nav class="navbar-links">
|
|
{% if session.get('username') %}
|
|
<a href="{{ url_for('index') }}">Dashboard</a>
|
|
<a href="{{ url_for('send_update') }}">Send Update</a>
|
|
<a href="{{ url_for('logout') }}" class="logout">Logout</a>
|
|
{% endif %}
|
|
</nav>
|
|
</div>
|
|
</header>
|
|
|
|
<main class="container">
|
|
{% with messages = get_flashed_messages(with_categories=true) %}
|
|
{% if messages %}
|
|
<div class="flash-stack">
|
|
{% for category, message in messages %}
|
|
<div class="flash flash-{{ category|lower }}">{{ message }}</div>
|
|
{% endfor %}
|
|
</div>
|
|
{% endif %}
|
|
{% endwith %}
|
|
|
|
{% block content %}{% endblock %}
|
|
</main>
|
|
|
|
<footer class="footer">
|
|
<div class="footer-inner">
|
|
<span>© {{ 2025 }} Admin Panel</span>
|
|
</div>
|
|
</footer>
|
|
</body>
|
|
</html> |