diff options
| author | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2019-03-26 14:20:23 +0000 |
|---|---|---|
| committer | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2019-03-26 14:20:23 +0000 |
| commit | 66f15e0808c5fb0a91ce47d5c3a2dca5a91f809d (patch) | |
| tree | 13f381fcd922e766ec0604b3c7f42a8f7e7a3ea0 /app/templates | |
| parent | Add user css and done image (diff) | |
| download | AnnotateChange-66f15e0808c5fb0a91ce47d5c3a2dca5a91f809d.tar.gz AnnotateChange-66f15e0808c5fb0a91ce47d5c3a2dca5a91f809d.zip | |
Fancy message flashing
Diffstat (limited to 'app/templates')
| -rw-r--r-- | app/templates/base.html | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/app/templates/base.html b/app/templates/base.html index 9812c5f..f020d5f 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -1,4 +1,5 @@ {% extends 'bootstrap/base.html' %} +{% import "bootstrap/utils.html" as util %} {% block styles %} {{ super() }} @@ -43,15 +44,8 @@ {% block content %} <div class="container"> - {% 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 %} + + {{ util.flashed_messages(dismissible=True) }} {% block app_content %} {% endblock %} |
