Browse Source

Add flashed messages to default site

pull/2/head
Noah Petherbridge 7 years ago
parent
commit
07f051f17e
1 changed files with 13 additions and 1 deletions
  1. +13
    -1
      rophako/www/layout.html

+ 13
- 1
rophako/www/layout.html View File

@@ -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>
@@ -56,4 +68,4 @@
{% block scripts %}{% endblock %}

</body>
</html>
</html>

Loading…
Cancel
Save