summaryrefslogtreecommitdiffhomepage
path: root/libs
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2008-09-08 16:51:50 +0000
committerJo-Philipp Wich <jow@openwrt.org>2008-09-08 16:51:50 +0000
commit8d372d2f284e1d74d210a30a03681bc86395574d (patch)
treebd20280d881c73550323c10304070864385b76ca /libs
parent9890c99d0bb4cefbf134c265888fbe60fea42c8c (diff)
* luci/libs/cbi: better layout for apply output
* luci/themes: introduce new css class for apply ul
Diffstat (limited to 'libs')
-rw-r--r--libs/cbi/luasrc/view/cbi/map.htm28
1 files changed, 15 insertions, 13 deletions
diff --git a/libs/cbi/luasrc/view/cbi/map.htm b/libs/cbi/luasrc/view/cbi/map.htm
index 1238b6adb..6378f72ab 100644
--- a/libs/cbi/luasrc/view/cbi/map.htm
+++ b/libs/cbi/luasrc/view/cbi/map.htm
@@ -16,19 +16,21 @@ $Id$
<div class="cbi-map" id="cbi-<%=self.config%>">
<h1><%=self.title%></h1>
<div class="cbi-map-descr"><%=self.description%></div>
- <%- if self._apply then -%><code><%:cbi_applying%>:
-
-<%
- local fp = self._apply()
- self._apply = nil
- local line = fp:read()
- while line do
- write(line.."\n")
- line = fp:read()
- end
- fp:close()
- -%>
- </code><%- end -%>
+ <%- if self._apply then -%>
+ <fieldset class="cbi-section">
+ <legend><%:cbi_applying%></legend>
+ <ul class="cbi-apply"><%-
+ local fp = self._apply()
+ self._apply = nil
+ local line = fp:read()
+ while line do
+ write("<li>" .. luci.util.pcdata(line) .. "</li>\n")
+ line = fp:read()
+ end
+ fp:close()
+ -%></ul>
+ </fieldset>
+ <%- end -%>
<%- self:render_children() %>
<br />
</div>