refactor alert actions
This commit is contained in:
parent
a05da67d71
commit
50792d9f37
@ -38,7 +38,14 @@
|
||||
{% endif %}
|
||||
|
||||
{% 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 %}
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user