refactor alert actions

This commit is contained in:
Andrew Croce 2018-08-20 14:43:08 -04:00
parent a05da67d71
commit 50792d9f37

View File

@ -38,7 +38,14 @@
{% endif %} {% endif %}
{% if actions %} {% if actions %}
<div class='alert__actions'>{{ actions | safe }}</div> <div class='alert__actions'>
{% for action in actions %}
<a href={{ action["href"] }} class='icon-link'>
{% if 'icon' in action %}{{ Icon(action["icon"]) }}{% endif %}
<span>{{ action["label"] }}</span>
</a>
{% endfor %}
</div>
{% endif %} {% endif %}
</div> </div>
</div> </div>