50 lines
1.8 KiB
HTML
50 lines
1.8 KiB
HTML
{% load static %}
|
|
<!doctype html>
|
|
<html lang="de">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<meta name="theme-color" content="#2f7d57">
|
|
<title>{% block title %}Radeln ohne Alter{% endblock %}</title>
|
|
<link rel="stylesheet" href="{% static 'rides/css/app.css' %}">
|
|
<script src="https://unpkg.com/htmx.org@2.0.3" defer></script>
|
|
{% block head %}{% endblock %}
|
|
</head>
|
|
<body>
|
|
<header class="site-header">
|
|
<a class="brand" href="{% url 'home' %}">
|
|
<span class="brand-mark" aria-hidden="true">🚲</span>
|
|
<span class="brand-text">Radeln <em>ohne Alter</em></span>
|
|
</a>
|
|
{% if user.is_authenticated %}
|
|
<nav class="site-nav">
|
|
<a href="{% url 'dashboard' %}">Übersicht</a>
|
|
<a href="{% url 'map' %}">Karte</a>
|
|
{% if profile.is_coordinator %}<a href="{% url 'stats' %}">Statistik</a>{% endif %}
|
|
<a href="{% url 'coverage' %}">Einzugsgebiet</a>
|
|
</nav>
|
|
<div class="user-chip">
|
|
{% if profile %}<span class="role-dot role-{{ profile.role }}" title="{{ profile.get_role_display }}"></span>{% endif %}
|
|
<span class="user-name">{{ user.get_full_name|default:user.username }}</span>
|
|
<form method="post" action="{% url 'logout' %}" class="inline">{% csrf_token %}<button class="link">abmelden</button></form>
|
|
</div>
|
|
{% endif %}
|
|
</header>
|
|
|
|
{% if messages %}
|
|
<ul class="messages container">
|
|
{% for m in messages %}<li class="msg msg-{{ m.tags }}">{{ m }}</li>{% endfor %}
|
|
</ul>
|
|
{% endif %}
|
|
|
|
<main class="container">
|
|
{% block content %}{% endblock %}
|
|
</main>
|
|
|
|
<footer class="site-footer container">
|
|
<span>Demo · Radeln ohne Alter Saarbrücken · ehrenamtliche Rikscha-Fahrten</span>
|
|
</footer>
|
|
|
|
{% block scripts %}{% endblock %}
|
|
</body>
|
|
</html>
|