futtern/templates/base.html.twig
lubiana 674adcba60
All checks were successful
/ ls (pull_request) Successful in 37s
/ ls (push) Successful in 39s
/ ls (release) Successful in 25s
#42: allow updates to menuitems
2024-08-15 18:22:46 +02:00

40 lines
1.4 KiB
Twig

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>{% block title %}Welcome!{% endblock %}</title>
<link rel="icon" type="image/svg+xml"
href="{{ favicon }}" />
{% set currentDate = "now"|date("d") %}
{% if currentDate % 3 == 0 %}
<link rel="stylesheet" href="/static/css/new.min.css">
{% elseif currentDate % 3 == 1 %}
<link rel="stylesheet" href="/static/css/simple.min.css">
{% else %}
<link rel="stylesheet" href="/static/css/water.min.css">
{% endif %}
<style>
label{
display: block;
}
</style>
<script src="/static/js/htmx.min.js"></script>
</head>
<body>
<header>
<p>Hello {{ app.request.cookies.get('username', 'nobody') }} - <a href="{{ path('username') }}">change name</a></p>
<nav>
<a href="{{ path('app_food_order_index') }}">Orders</a> /
<a href="{{ path('app_food_vendor_index') }}">Vendors</a> /
<a
href="https://hannover.ccc.de/gitlab/lubiana/futtern/issues/new"
target="_blank"
>Create Issue</a>
</nav>
</header>
<main>
{% block body %}{% endblock %}
</main>
</body>
</html>