Show bootstrap alert after login.

This commit is contained in:
Edward Betts 2026-02-17 11:30:03 +00:00
parent e0b9e4e719
commit b835956ea9
2 changed files with 14 additions and 0 deletions

View file

@ -16,6 +16,18 @@
<body>
{% block nav %}{{ navbar() }}{% endblock %}
{% with messages = get_flashed_messages() %}
{% if messages %}
<div class="container-fluid mt-2">
{% for message in messages %}
<div class="alert alert-success alert-dismissible fade show" role="alert">
{{ message }}
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
{% endfor %}
</div>
{% endif %}
{% endwith %}
{% block content %}{% endblock %}
{% block scripts %}{% endblock %}
<script src="{{ url_for("static", filename="bootstrap5/js/bootstrap.bundle.min.js") }}"></script>