Commit 2d69f798 authored by Pietro Albini's avatar Pietro Albini

Add support for flashing messages

parent c47806e8
......@@ -84,6 +84,17 @@
{% endfor %}
<div class="container">
{% with messages = get_flashed_messages(with_categories=True) %}
{% if messages %}
{% for category, message in messages %}
<div class="alert {% if category != "message" %}{{ category }}{% else %}info{% endif %}">
{{ message }}
<span class="close">&times;</span>
</div>
{% endfor %}
{% endif %}
{% endwith %}
{% block content %}{% endblock %}
<footer>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment