Akron | ca9bd98 | 2016-12-06 16:59:57 +0100 | [diff] [blame^] | 1 | {% with messages = get_flashed_messages(with_categories=true) %} |
2 | {% if messages %} | ||||
3 | {% for category, message in messages %} | ||||
4 | <div class="alert alert-{{ category }}" role="alert"> | ||||
5 | <span class="sr-only">{{ category }}:</span> | ||||
6 | {{ message }} | ||||
7 | </div> | ||||
8 | {% endfor %} | ||||
9 | {% endif %} | ||||
10 | {% endwith %} |