summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-10-23 04:21:14 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-10-23 04:21:14 +0000
commit8cd46b595a1a1142b2f70fe7c6d1eb1512656235 (patch)
tree0f2d8425fecaeb177351faff4a81bd1b2da28e7e
parenta24d340ca4f3dd87135da8341e2c74542d907668 (diff)
libs/web: cbi: support description attribute in nullsection instances
-rw-r--r--libs/web/luasrc/view/cbi/nullsection.htm3
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/web/luasrc/view/cbi/nullsection.htm b/libs/web/luasrc/view/cbi/nullsection.htm
index 9a91432ad..bd4895095 100644
--- a/libs/web/luasrc/view/cbi/nullsection.htm
+++ b/libs/web/luasrc/view/cbi/nullsection.htm
@@ -2,6 +2,9 @@
<% if self.title and #self.title > 0 then -%>
<legend><%=self.title%></legend>
<%- end %>
+ <% if self.description and #self.description > 0 then -%>
+ <div class="cbi-section-descr"><%=self.description%></div>
+ <%- end %>
<div class="cbi-section-node" id="cbi-<%=self.config%>-<%=tostring(self):sub(8)%>">
<div>
<% self:render_children(1, scope or {}) %>