summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2016-01-18 10:59:07 +0100
committerJo-Philipp Wich <jow@openwrt.org>2016-01-18 11:00:57 +0100
commit879804f1d4716a61ad3cfff3b610b6c25db22a6c (patch)
tree63378a734594d90a626c9671afb9374d27acd830 /modules/luci-base
parent718466ea762d2fa166c6f32a80e915086216be84 (diff)
luci-base: do not render section description tag when description is empty
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Diffstat (limited to 'modules/luci-base')
-rw-r--r--modules/luci-base/luasrc/view/cbi/tsection.htm4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/luci-base/luasrc/view/cbi/tsection.htm b/modules/luci-base/luasrc/view/cbi/tsection.htm
index 087548bf28..fcffbe0e7b 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 -%>
<legend><%=self.title%></legend>
<%- end %>
- <div class="cbi-section-descr"><%=self.description%></div>
+ <% if self.description and #self.description > 0 then -%>
+ <div class="cbi-section-descr"><%=self.description%></div>
+ <%- end %>
<% local isempty = true for i, k in ipairs(self:cfgsections()) do -%>
<% if self.addremove then -%>
<div class="cbi-section-remove right">