From 879804f1d4716a61ad3cfff3b610b6c25db22a6c Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 18 Jan 2016 10:59:07 +0100 Subject: [PATCH] luci-base: do not render section description tag when description is empty Signed-off-by: Jo-Philipp Wich --- modules/luci-base/luasrc/view/cbi/tsection.htm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -%>
-- 2.11.0