<!-- Important Messages -->
{% if message_exists('important') %}
    <div class="alert alert-danger">
        {% for message in message_pull('important') %}
            {{ trans(message)|markdown }}
        {% endfor %}
    </div>
{% endif %}

<!-- Success Messages -->
{% if message_exists('success') %}
    <div class="alert alert-success" data-dismiss="alert">
        <button type="button" class="close" data-dismiss="alert">
            <span>&times;</span>
        </button>
        {% for message in message_pull('success') %}
            {{ trans(message)|markdown }}
        {% endfor %}
    </div>
{% endif %}

<!-- Informational Messages -->
{% if message_exists('info') %}
    <div class="alert alert-info" data-dismiss="alert">
        <button type="button" class="close" data-dismiss="alert">
            <span>&times;</span>
        </button>
        {% for message in message_pull('info') %}
            {{ trans(message)|markdown }}
        {% endfor %}
    </div>
{% endif %}

<!-- Warning Messages -->
{% if message_exists('warning') %}
    <div class="alert alert-warning" data-dismiss="alert">
        <button type="button" class="close" data-dismiss="alert">
            <span>&times;</span>
        </button>
        {% for message in message_pull('warning') %}
            {{ trans(message)|markdown }}
        {% endfor %}
    </div>
{% endif %}

<!-- Error Messages -->
{% if message_exists('error') %}
    <div class="alert alert-danger" data-dismiss="alert">
        <button type="button" class="close" data-dismiss="alert">
            <span>&times;</span>
        </button>
        {% for message in message_pull('error') %}
            {{ trans(message)|markdown }}
        {% endfor %}
    </div>
{% endif %}
