Merge branch 'main' of gitlab.com:PhilippHofer/rot

This commit is contained in:
philipp 2023-04-06 08:06:58 +02:00
commit 37e54c13d5

View File

@ -2,15 +2,16 @@
{% block content %}
{% if loggedin_user %}
<div class="max-w-screen-lg w-full grid gap-4">
{% if loggedin_user %}
Hi {{ loggedin_user.name }}. <a href="/auth/logout">LOGOUT</a>
{% if loggedin_user.is_admin %}
<a href="/admin/user">USER</a>
{% endif %}
{% endif %}
{% endif %}
{% if flash %}
{% if flash %}
{% if flash.0 == "success" %}
<div class="row">
<div class="one-column p-1 text-white bg-green mb-3 light text-center">
@ -25,11 +26,14 @@
</div>
</div>
{% endif %}
{% endif %}
{% endif %}
<h1>Ausfahrten</h1>
<h1 class="text-center text-3xl uppercase tracking-wide font-bold text-primary-900">Ausfahrten</h1>
{% for day in days %}
{% for day in days %}
<div class="bg-white p-3 rounded-md flex items-end md:items-center justify-between">
<h2>{{ day.day }}</h2>
{% for planned_event in day.planned_events %}
@ -117,7 +121,8 @@
{% endif %}
<hr/>
{% endfor %}
</div>
{% endfor %}
</div>
</div>
{% endblock content %}