bunkerized-nginx/ui/templates/base.html
2022-06-03 17:24:14 +02:00

52 lines
1.6 KiB
HTML

{% set template_data = {"javascript": ""} %}
<!DOCTYPE html>
<html lang="en">
{% include "head.html" %}
<body class="hero-anime bg-light d-flex flex-column justify-content-between">
<noscript>Your browser does not support JavaScript!</noscript>
{% include "navbar.html" %}
<div class="container-fluid h-100 main-div">
<div class="position-fixed bottom-0 end-0 p-3 pt-5 toast-container">
{% with messages = get_flashed_messages(with_categories=true) %} {% if
messages %} {% for category, message in messages %}
<div
class="toast fade show"
role="alert"
aria-live="assertive"
aria-atomic="true"
>
<div class="toast-header">
<img
src="images/favicon.ico"
class="rounded me-2"
alt="BunkerWeb icon"
width="14"
height="14"
/>
<strong class="me-auto">BunkerWeb</strong>
{% if category == 'error' %}
<small style="color: rgb(168, 0, 0)">error</small>
{% else %}
<small style="color: rgb(21, 138, 21)">success</small>
{% endif %}
<button
type="button"
class="btn-close"
data-bs-dismiss="toast"
aria-label="Close"
></button>
</div>
<div class="toast-body">{{ message|safe }}</div>
</div>
{% endfor %} {% endif %} {% endwith %}
</div>
{% block content %} {% endblock %}
</div>
{% include "footer.html" %}
</body>
</html>