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