* luci/libs: only create <legend> if there is a title in tblsection template

This commit is contained in:
Jo-Philipp Wich 2008-08-14 01:33:48 +00:00
parent 8591d4e396
commit dfdd557d5d

View file

@ -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 -%>