57 lines
2.4 KiB
HTML
57 lines
2.4 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="de" data-theme="light">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>{% block title %}CMBNet{% endblock %}</title>
|
|
<link rel="icon" href="{{ url_for('static', filename='favicon.ico') }}" type="image/x-icon">
|
|
<script>
|
|
(() => {
|
|
try {
|
|
const theme = localStorage.getItem('cmbnet:theme');
|
|
if (theme === 'dark' || theme === 'light') {
|
|
document.documentElement.dataset.theme = theme;
|
|
}
|
|
} catch (error) {
|
|
// localStorage ist in manchen Browser-Kontexten nicht verfügbar.
|
|
}
|
|
})();
|
|
</script>
|
|
<script>
|
|
// Basis-Pfad für alle clientseitigen URLs. Bei einem Reverse-Proxy
|
|
// mit X-Forwarded-Prefix enthält SCRIPT_NAME z. B. "/cmbnet".
|
|
window.CMBNET_BASE_URL = {{ request.script_root|tojson }};
|
|
window.CMBNET_TENANT = {{ (session.get('tenant_code') or '')|tojson }};
|
|
window.CMBNET_APP_URL = function (path) {
|
|
const base = (window.CMBNET_BASE_URL || '').replace(/\/+$/, '');
|
|
const clean = String(path == null ? '' : path).replace(/^\/+/, '');
|
|
return clean ? base + '/' + clean : (base || '/');
|
|
};
|
|
</script>
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='css/pico.min.css') }}">
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='css/leaflet.css') }}">
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='css/admin.css') }}">
|
|
{% block head %}{% endblock %}
|
|
</head>
|
|
<body class="{% block body_class %}{% endblock %}">
|
|
{% block logo %}
|
|
<div class="app-logo" aria-hidden="true">
|
|
<img src="{{ url_for('static', filename='img/logo.png') }}" alt="">
|
|
</div>
|
|
{% endblock %}
|
|
<main class="container">
|
|
{% with messages = get_flashed_messages(with_categories=true) %}
|
|
{% if messages %}
|
|
{% for category, message in messages %}
|
|
<article class="{{ category }}">{{ message }}</article>
|
|
{% endfor %}
|
|
{% endif %}
|
|
{% endwith %}
|
|
{% block content %}{% endblock %}
|
|
</main>
|
|
<script src="{{ url_for('static', filename='js/leaflet.js') }}"></script>
|
|
{% block scripts %}{% endblock %}
|
|
</body>
|
|
</html>
|