luci-base: do not render section description tag when description is empty
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
This commit is contained in:
parent
718466ea76
commit
879804f1d4
1 changed files with 3 additions and 1 deletions
|
@ -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">
|
||||
|
|
Loading…
Reference in a new issue