summaryrefslogtreecommitdiffhomepage
path: root/libs
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2008-08-14 01:33:48 +0000
committerJo-Philipp Wich <jow@openwrt.org>2008-08-14 01:33:48 +0000
commitdfdd557d5dbac9cce3b31ca2e8cdd6fb8b331cc7 (patch)
treeb7f883fd708b13a4f269a8b93c97733c60138719 /libs
parent8591d4e3963900082bc6468fe37eb08ce930faec (diff)
* luci/libs: only create <legend> if there is a title in tblsection template
Diffstat (limited to 'libs')
-rw-r--r--libs/cbi/luasrc/view/cbi/tblsection.htm4
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/cbi/luasrc/view/cbi/tblsection.htm b/libs/cbi/luasrc/view/cbi/tblsection.htm
index 7bb31caa1d..36304081bd 100644
--- 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 -%>