projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
718466e
)
luci-base: do not render section description tag when description is empty
author
Jo-Philipp Wich
<jow@openwrt.org>
Mon, 18 Jan 2016 09:59:07 +0000
(10:59 +0100)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Mon, 18 Jan 2016 10:00:57 +0000
(11:00 +0100)
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
modules/luci-base/luasrc/view/cbi/tsection.htm
patch
|
blob
|
history
diff --git
a/modules/luci-base/luasrc/view/cbi/tsection.htm
b/modules/luci-base/luasrc/view/cbi/tsection.htm
index 087548bf2888c74cbf360e9fb331735df2497ea0..fcffbe0e7b1b0f499340db07e309fe061c2fb7f3 100644
(file)
--- 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">