85 lines
3.3 KiB
HTML
85 lines
3.3 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<title>{{ title or "Signage" }}</title>
|
|
<link rel="icon" href="{{ url_for('static', filename='favicon.png') }}" type="image/png" />
|
|
<link rel="apple-touch-icon" href="{{ url_for('static', filename='favicon.png') }}" />
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" />
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='styles.css') }}" />
|
|
</head>
|
|
<body>
|
|
<nav class="navbar navbar-expand-lg navbar-light fixed-top app-navbar">
|
|
<div class="container">
|
|
<a class="navbar-brand d-flex align-items-center gap-2" href="/">
|
|
<img
|
|
class="brand-logo"
|
|
src="{{ url_for('static', filename='logo.svg') }}"
|
|
alt="Signage"
|
|
width="34"
|
|
height="34"
|
|
/>
|
|
|
|
</a>
|
|
|
|
<button
|
|
class="navbar-toggler"
|
|
type="button"
|
|
data-bs-toggle="collapse"
|
|
data-bs-target="#mainNav"
|
|
aria-controls="mainNav"
|
|
aria-expanded="false"
|
|
aria-label="Toggle navigation"
|
|
>
|
|
<span class="navbar-toggler-icon"></span>
|
|
</button>
|
|
|
|
<div class="collapse navbar-collapse" id="mainNav">
|
|
<ul class="navbar-nav me-auto">
|
|
{% if current_user.is_authenticated %}
|
|
{% if current_user.is_admin %}
|
|
{# Dashboard link removed: users can click the logo to go to the dashboard. #}
|
|
{% else %}
|
|
{# Dashboard link removed: users can click the logo to go to the dashboard. #}
|
|
{% endif %}
|
|
{% endif %}
|
|
</ul>
|
|
|
|
<div class="d-flex align-items-lg-center flex-column flex-lg-row gap-2 ms-lg-auto">
|
|
{% if current_user.is_authenticated %}
|
|
<div class="small text-muted">{{ current_user.email }}</div>
|
|
<a class="btn btn-outline-ink btn-sm" href="{{ url_for('auth.change_password') }}">Change password</a>
|
|
{% if not current_user.is_admin %}
|
|
<a class="btn btn-outline-ink btn-sm" href="{{ url_for('company.my_company') }}">My company</a>
|
|
{% endif %}
|
|
{% if session.get('impersonator_admin_id') %}
|
|
<a class="btn btn-brand btn-sm" href="{{ url_for('auth.stop_impersonation') }}">Stop impersonation</a>
|
|
{% endif %}
|
|
<a class="btn btn-outline-ink btn-sm" href="{{ url_for('auth.logout') }}">Logout</a>
|
|
{% else %}
|
|
<a class="btn btn-outline-ink btn-sm" href="{{ url_for('auth.login') }}">Login</a>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
|
|
<main class="container app-main">
|
|
{% with messages = get_flashed_messages(with_categories=true) %}
|
|
{% if messages %}
|
|
<div class="mt-2">
|
|
{% for category, message in messages %}
|
|
<div class="alert alert-{{ category }}">{{ message }}</div>
|
|
{% endfor %}
|
|
</div>
|
|
{% endif %}
|
|
{% endwith %}
|
|
{% block content %}{% endblock %}
|
|
</main>
|
|
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
|
|
{% block page_scripts %}{% endblock %}
|
|
</body>
|
|
</html>
|