From 50792d9f3791b07cc274127b52800de639401699 Mon Sep 17 00:00:00 2001 From: Andrew Croce Date: Mon, 20 Aug 2018 14:43:08 -0400 Subject: [PATCH] refactor alert actions --- templates/components/alert.html | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/templates/components/alert.html b/templates/components/alert.html index 1fd30167..46be1549 100644 --- a/templates/components/alert.html +++ b/templates/components/alert.html @@ -38,7 +38,14 @@ {% endif %} {% if actions %} -
{{ actions | safe }}
+
+ {% for action in actions %} + + {% if 'icon' in action %}{{ Icon(action["icon"]) }}{% endif %} + {{ action["label"] }} + + {% endfor %} +
{% endif %}