mirror of
https://github.com/spl0k/supysonic.git
synced 2024-12-22 17:06:17 +00:00
Better display of flashed messages
This commit is contained in:
parent
b82e7d68ae
commit
84bc079a72
@ -1,12 +1,26 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<title>Supysonic</title>
|
<title>Supysonic</title>
|
||||||
|
<style>
|
||||||
|
.flash {
|
||||||
|
border: dashed 1px red;
|
||||||
|
padding: 2px;
|
||||||
|
margin: 10px;
|
||||||
|
}
|
||||||
|
.flash p {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
<div class="page">
|
<div class="page">
|
||||||
<h1>Supysonic</h1>
|
<h1>Supysonic</h1>
|
||||||
|
|
||||||
|
{% if get_flashed_messages() %}
|
||||||
<div class="flash">
|
<div class="flash">
|
||||||
{% for message in get_flashed_messages() %}
|
{% for message in get_flashed_messages() %}
|
||||||
<p>{{ message }}</p>
|
<p>{{ message }}</p>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
{% endif %}
|
||||||
{% block body %}{% endblock %}
|
{% block body %}{% endblock %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user