40 lines
1.4 KiB
Twig
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://git.hannover.ccc.de/lubiana/futtern/issues/new"
|
|
target="_blank"
|
|
>Create Issue</a>
|
|
</nav>
|
|
</header>
|
|
<main>
|
|
{% block body %}{% endblock %}
|
|
</main>
|
|
</body>
|
|
</html>
|
|
|