Add flashed messages to default site
This commit is contained in:
parent
1cbf93502d
commit
07f051f17e
|
@ -39,6 +39,18 @@
|
|||
</nav>
|
||||
|
||||
<div id="content">
|
||||
{% with messages = get_flashed_messages() %}
|
||||
{% if messages %}
|
||||
<h1>Notice!</h1>
|
||||
|
||||
<ul>
|
||||
{% for message in messages %}
|
||||
<li>{{ message }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
{% endwith %}
|
||||
|
||||
{% block content %}{% endblock %}
|
||||
|
||||
<footer>
|
||||
|
|
Loading…
Reference in New Issue
Block a user