diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2013-12-27 15:07:46 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2013-12-27 15:07:46 +0100 |
commit | 06f67d8f53a87bd6487a06f193f8ad820e372173 (patch) | |
tree | 5a50c158e811a9d6c230a3d2e7f538d07ce08088 /pyaggr3g470r/templates | |
parent | Minor bugfix. (diff) | |
download | newspipe-06f67d8f53a87bd6487a06f193f8ad820e372173.tar.gz newspipe-06f67d8f53a87bd6487a06f193f8ad820e372173.tar.bz2 newspipe-06f67d8f53a87bd6487a06f193f8ad820e372173.zip |
Improved Flask flash messages.
Diffstat (limited to 'pyaggr3g470r/templates')
-rw-r--r-- | pyaggr3g470r/templates/layout.html | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/pyaggr3g470r/templates/layout.html b/pyaggr3g470r/templates/layout.html index 0d3f05a3..9f1deeab 100644 --- a/pyaggr3g470r/templates/layout.html +++ b/pyaggr3g470r/templates/layout.html @@ -78,20 +78,18 @@ </div><!-- /.container --> </nav> + <div class="container"> {% with messages = get_flashed_messages(with_categories=true) %} {% if messages %} - <!--<ul class=flashes>--> {% for category, message in messages %} - <!--<li class="{{ category }}">--> <div class="alert alert-{{category}}"> <button type="button" class="close" data-dismiss="alert">×</button> {{ message }} </div> - <!--</li>--> {% endfor %} - <!--</ul>--> {% endif %} {% endwith %} + </div> {% block content %}{% endblock %} |