diff --git a/templates/components/alert.html b/templates/components/alert.html index 46be1549..80f99196 100644 --- a/templates/components/alert.html +++ b/templates/components/alert.html @@ -39,12 +39,20 @@ {% if actions %}
- {% for action in actions %} - - {% if 'icon' in action %}{{ Icon(action["icon"]) }}{% endif %} - {{ action["label"] }} - - {% endfor %} + {% if actions is string %} + + {{ actions | safe }} + + {% elif actions is iterable %} + + {% for action in actions %} + + {% if 'icon' in action %}{{ Icon(action["icon"]) }}{% endif %} + {{ action["label"] }} + + {% endfor %} + + {% endif %}
{% endif %}