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 | {% if category == 'danger' %} | ||||
6 | <span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span> | ||||
7 | {% endif %} | ||||
8 | <span class="sr-only">{{ category }}:</span> | ||||
9 | {{ message }} | ||||
10 | </div> | ||||
11 | {% endfor %} | ||||
12 | {% endif %} | ||||
13 | {% endwith %} |