Files
Sternsinger/CMBNet/templates/base.html
T

46 lines
1.8 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>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@picocss/pico@1/css/pico.min.css">
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/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="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"></script>
{% block scripts %}{% endblock %}
</body>
</html>