From: Jo-Philipp Wich Date: Mon, 18 Jan 2016 09:59:07 +0000 (+0100) Subject: luci-base: do not render section description tag when description is empty X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fluci.git;a=commitdiff_plain;h=879804f1d4716a61ad3cfff3b610b6c25db22a6c luci-base: do not render section description tag when description is empty Signed-off-by: Jo-Philipp Wich --- diff --git a/modules/luci-base/luasrc/view/cbi/tsection.htm b/modules/luci-base/luasrc/view/cbi/tsection.htm index 087548bf2..fcffbe0e7 100644 --- a/modules/luci-base/luasrc/view/cbi/tsection.htm +++ b/modules/luci-base/luasrc/view/cbi/tsection.htm @@ -2,7 +2,9 @@ <% if self.title and #self.title > 0 then -%> <%=self.title%> <%- end %> -
<%=self.description%>
+ <% if self.description and #self.description > 0 then -%> +
<%=self.description%>
+ <%- end %> <% local isempty = true for i, k in ipairs(self:cfgsections()) do -%> <% if self.addremove then -%>