From 93297c2d12262099b789d853c329f1a040211b2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Kr=C3=BCger?= Date: Tue, 7 Jun 2022 14:40:07 +0200 Subject: [PATCH] web-model: info: dedup --- .../files/lib/gluon/web/view/model/info.html | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/package/gluon-web-model/files/lib/gluon/web/view/model/info.html b/package/gluon-web-model/files/lib/gluon/web/view/model/info.html index 92da0150..ab78caff 100644 --- a/package/gluon-web-model/files/lib/gluon/web/view/model/info.html +++ b/package/gluon-web-model/files/lib/gluon/web/view/model/info.html @@ -1,19 +1,10 @@ -<%- if self.title then -%> -
> +<%- if self.title or self.content then -%> +<%- if self.title -%> <%=self.description%>
<%- elseif self.content then -%> -
> <%=self.content%> -
+<%- end -%> <%- end -%>