use bootstrap alerts for flashes

This commit is contained in:
Fabian Dill 2020-06-21 04:53:08 +02:00
parent 780ae4ebcc
commit 2759f6812c
1 changed files with 3 additions and 7 deletions

View File

@ -9,13 +9,9 @@
</head>
<body>
{% with messages = get_flashed_messages() %}
{% if messages %}
<ul class=flashes>
{% for message in messages %}
<li>{{ message }}</li>
{% endfor %}
</ul>
{% endif %}
{% for message in messages %}
<div class="alert alert-danger" role="alert">{{ message }}</div>
{% endfor %}
{% endwith %}
{% block body %}{% endblock %}
<footer class="page-footer" style="position: fixed; left: 0; bottom: 0; width: 100%; text-align: center">