fixup! webmodel warning support for title/description

This commit is contained in:
Maciej Krüger 2022-05-28 09:04:24 +02:00 committed by Alexander List
parent 2857f19351
commit f1274a7242

View File

@ -1,9 +1,14 @@
<%- if self.content then -%> <%- if self.title or self.content then -%>
<div class="gluon-warning"<%= <div class="gluon-warning"<%=
attr("id", id) .. attr("id", id) ..
attr("data-index", self.index) .. attr("data-index", self.index) ..
attr("data-depends", self:deplist(self.deps)) attr("data-depends", self:deplist(self.deps))
%>> %>>
<%- if self.content then -%>
<%=self.content%> <%=self.content%>
<%- else -%>
<b><%=self.title%></b>
<%=self.description%>
<%- end -%>
</div> </div>
<%- end -%> <%- end -%>