{foreach from=$alerts item=alert}
    <div class="alert alert--{$alert.type} alert--outline has-icon alert--border-left alert--license {if $alert.isHidden}is-hidden{/if}" 
         {if $alert.cookieName}data-cookie-alert data-cookie-alert-exp="{$alert.cookieExp}" data-cookie-alert-name="{$alert.cookieName}"{/if}>
        <div class="alert__body">
            {$alert.body}
        </div>
        <div class="alert__actions">
            {foreach from=$alert.actions item=action}
                <a class="btn {$action.class} btn--sm" href="{$action.url}" {if $action.target}target="{$action.target}"{/if}>{$action.label}</a>
            {/foreach}
            {if $alert.showDismiss}
                <button class="btn btn--default btn--outline btn--sm" data-dismiss="alert" aria-label="Close" type="button">Dismiss</button>
            {/if}
        </div>
    </div>
{/foreach}