rowt/templates/index.html.tera

33 lines
722 B
Plaintext
Raw Normal View History

2023-04-03 16:11:26 +02:00
{% extends "base" %}
{% block content %}
{% if loggedin_user %}
Hi {{ loggedin_user.name }}. <a href="/auth/logout">LOGOUT</a>
2023-04-04 10:44:14 +02:00
{% if loggedin_user.is_admin %}
<a href="/admin/user">USER</a>
{% endif %}
{% endif %}
2023-04-03 16:11:26 +02:00
{% 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 bold text-center">
{{ flash.1 }}
</div>
</div>
{% endif %}
{% endif %}
<h1>Hi</h1>
{% endblock content %}