display success or error messages
This commit is contained in:
parent
d23e90f1b9
commit
1c11876cc8
11
the_works/templates/_messages.html
Normal file
11
the_works/templates/_messages.html
Normal file
@ -0,0 +1,11 @@
|
||||
<section>
|
||||
{% with messages = get_flashed_messages(with_categories=true) %}
|
||||
{% if messages %}
|
||||
<ul class="flashes">
|
||||
{% for category, message in messages %}
|
||||
<li class="{{ category }}">{{ message }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
{% endwith %}
|
||||
</section>
|
||||
Loading…
Reference in New Issue
Block a user