<f:for each="{messages}" as="message">
    <div class="flash-message">
        <f:if condition="{message.code} === 500">
            <i class="fas fa-check success"></i>
        </f:if>
        {message}
    </div>
</f:for>


<f:form action="clearGlobalCache" method="POST">
    <button type="submit">
        <i class="fas fa-sync"></i>
        Cache leeren
    </button>
</f:form>


<style>
    .flash-message {
        display: flex;
        background: #1E0A3B;
        border: 1px solid #3F2C5A;
        align-items: center;
        margin-bottom: 15px !important;
    }

    .flash-message i {
        margin-right: 15px !important;
    }

    i.success {
        color: green;
    }
</style>
