{% with messages = get_flashed_messages(with_categories=true) %}
{% if messages %}
{% for category, message in messages %}
	<div class="alert alert-dismissable alert-{{ category }}" role="alert">
		<button type="button" class="close" data-dismiss="alert">&times;</button>
		{{ message }}
	</div>
{% endfor %}
{% endif %}
{% endwith %}
