rowt/templates/base.html.tera
Marie Birner 68c3628e61 Merge branch 'frontend'
# Conflicts:
#	templates/base.html.tera
2023-03-04 11:43:28 +01:00

83 lines
2.6 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html lang="en">
<head>
<!-- Basic Page Needs
-->
<meta charset="utf-8">
<title>Ro(wing)T(rips)</title>
<meta name="description" content="">
<meta name="author" content="">
<!-- Mobile Specific Metas
-->
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- CSS
-->
<link rel="stylesheet" href="/public/css/normalize.css">
<link rel="stylesheet" href="/public/css/skeleton.css">
<style>
.button{
font-size: 25px;
}
</style>
<!-- Favicon
-->
<link rel="icon" type="image/png" href="images/favicon.png">
</head>
<body>
{% if user %}
<div class="bg-gray p-1 mb-3">
<div class="container content-center-end">
{% if user.is_admin %}
<a class="button button-primary mb-0 font-base light" href="/">🚣</a>
<a class="button button-primary mb-0 font-base light" href="/user">👥</a>
{% endif %}
<a class="button button-primary mb-0 font-base light" href="/logout">LOGOUT</a>
</div>
</div>
{% endif %}
<!-- Primary Page Layout
-->
<div class="container">
{% if flash %}
{% if flash.0 == "success" %}
<div class="row">
<div class="one-column p-1 text-white bg-green mb-3 light text-center">
{{ flash.1 }}
</div>
</div>
{% endif %}
{% if flash.0 == "error" %}
<div class="row">
<div class="one-column p-1 text-white bg-red mb-3 light text-center">
{{ flash.1 }}
</div>
</div>
{% endif %}
{% endif %}
<div class="row">
<div class="column">
{% block content %}
{% endblock content %}
</div>
</div>
</div>
<!-- End Document
-->
</body>
</html>