Add Radeln ohne Alter ride-coordination demo (Django + HTMX + Leaflet)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
commit
5d967c68b5
40 changed files with 2040 additions and 0 deletions
50
templates/base.html
Normal file
50
templates/base.html
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
{% 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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue