{% if messages %}
    {% for message in messages %}
        <div class="alert {{ message.tags }} alert-dismissible alert-server" role="alert" >
            <button type="button" class="close" data-dismiss="alert">×</button>
            {% if 'safe' in message.tags %}{{ message|safe }}{% else %}{{ message }}{% endif %}
        </div>
    {% endfor %}
{% endif %}