1
0
mirror of https://github.com/spl0k/supysonic.git synced 2024-12-22 08:56:17 +00:00

Better display of flashed messages

This commit is contained in:
Alban 2012-10-13 14:52:39 +02:00
parent b82e7d68ae
commit 84bc079a72

View File

@ -1,12 +1,26 @@
<!DOCTYPE html>
<title>Supysonic</title>
<style>
.flash {
border: dashed 1px red;
padding: 2px;
margin: 10px;
}
.flash p {
margin: 0;
padding: 0;
}
</style>
<div class="page">
<h1>Supysonic</h1>
{% if get_flashed_messages() %}
<div class="flash">
{% for message in get_flashed_messages() %}
<p>{{ message }}</p>
<p>{{ message }}</p>
{% endfor %}
</div>
{% endif %}
{% block body %}{% endblock %}
</div>