zapamietanie akcji

This commit is contained in:
Mateusz Gruszczyński
2026-07-19 19:22:52 +02:00
parent 697ac6da30
commit 5299a7fc66
5 changed files with 26 additions and 10 deletions
+7 -3
View File
@@ -41,10 +41,14 @@
</div>
</nav>
{% endif %}
<main class="container app-main {% if not current_user.is_authenticated %}auth-main{% endif %}">
{% with msgs=get_flashed_messages(with_categories=true) %}
{% with msgs=get_flashed_messages(with_categories=true) %}
{% if msgs %}
<div id="server-alerts" class="app-alert-host" aria-live="polite" aria-atomic="true">
{% for cat,msg in msgs %}<div class="alert alert-{{cat}} alert-dismissible fade show app-alert" role="alert">{{msg}}<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Zamknij"></button></div>{% endfor %}
{% endwith %}
</div>
{% endif %}
{% endwith %}
<main class="container app-main {% if not current_user.is_authenticated %}auth-main{% endif %}">
{% block content %}{% endblock %}
</main>
{% if current_user.is_authenticated %}<footer class="app-footer"><div class="container d-flex justify-content-between align-items-center small"><span>@linuxiarz.pl</span><a href="/docs" target="_blank" rel="noopener">Dokumentacja API</a></div></footer>{% endif %}