From f1274a72426c7976b29af8d85f10e0e2147cb7c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Kr=C3=BCger?= Date: Sat, 28 May 2022 09:04:24 +0200 Subject: [PATCH] fixup! webmodel warning support for title/description --- .../files/lib/gluon/web/view/model/warning.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/package/gluon-web-model/files/lib/gluon/web/view/model/warning.html b/package/gluon-web-model/files/lib/gluon/web/view/model/warning.html index 3f0274da..9a71a7f9 100644 --- a/package/gluon-web-model/files/lib/gluon/web/view/model/warning.html +++ b/package/gluon-web-model/files/lib/gluon/web/view/model/warning.html @@ -1,9 +1,14 @@ -<%- if self.content then -%> +<%- if self.title or self.content then -%>
> + <%- if self.content then -%> <%=self.content%> + <%- else -%> + <%=self.title%> + <%=self.description%> + <%- end -%>
<%- end -%>