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:
8591d4e
)
* luci/libs: only create <legend> if there is a title in tblsection template
author
Jo-Philipp Wich
<jow@openwrt.org>
Thu, 14 Aug 2008 01:33:48 +0000
(
01:33
+0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Thu, 14 Aug 2008 01:33:48 +0000
(
01:33
+0000)
libs/cbi/luasrc/view/cbi/tblsection.htm
patch
|
blob
|
history
diff --git
a/libs/cbi/luasrc/view/cbi/tblsection.htm
b/libs/cbi/luasrc/view/cbi/tblsection.htm
index 7bb31caa1debdea2a5c3d62c24fb09116b694883..36304081bdf59552900f8f6fb32a6d177df7a785 100644
(file)
--- a/
libs/cbi/luasrc/view/cbi/tblsection.htm
+++ b/
libs/cbi/luasrc/view/cbi/tblsection.htm
@@
-22,7
+22,9
@@
end
<!-- tblsection -->
<fieldset class="cbi-section" id="cbi-<%=self.config%>-<%=self.sectiontype%>">
- <legend><%=self.title%></legend>
+ <% if self.title and #self.title > 0 then -%>
+ <legend><%=self.title%></legend>
+ <%- end %>
<div class="cbi-section-descr"><%=self.description%></div>
<div class="cbi-section-node">
<%- local count = 0 -%>