summaryrefslogtreecommitdiffstats
path: root/interfaces-read-html.lsp
diff options
context:
space:
mode:
authorMika Havela <mika.havela@gmail.com>2008-03-28 11:48:21 +0000
committerMika Havela <mika.havela@gmail.com>2008-03-28 11:48:21 +0000
commit6b9327af15dc6c0d1869293502ee926fb0b6f1ec (patch)
tree824bbaa76607c1528927271c89376e6df5c1f34a /interfaces-read-html.lsp
parent70b28419e50d7947ab1220517e5c3495aca73a93 (diff)
downloadacf-alpine-baselayout-6b9327af15dc6c0d1869293502ee926fb0b6f1ec.tar.bz2
acf-alpine-baselayout-6b9327af15dc6c0d1869293502ee926fb0b6f1ec.tar.xz
Updated the looks of the read tab.
git-svn-id: svn://svn.alpinelinux.org/acf/alpine-baselayout/trunk@857 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'interfaces-read-html.lsp')
-rw-r--r--interfaces-read-html.lsp8
1 files changed, 4 insertions, 4 deletions
diff --git a/interfaces-read-html.lsp b/interfaces-read-html.lsp
index 8400151..2ddd5c5 100644
--- a/interfaces-read-html.lsp
+++ b/interfaces-read-html.lsp
@@ -40,21 +40,21 @@ displayinfo(myform,tags,"viewonly")
?>
</DL>
-<H2>Configurations</H2>
+<H2>Configured interfaces</H2>
<DL>
<?
local myform = form.iface
-io.write("<DT>Configured interfaces</DT><DD>")
for k,v in pairs(myform) do
local myform=v
if (myform.name.value ~= "") then
+ io.write("<DT><IMG SRC='/static/tango/16x16/devices/network-wired.png' width='16' height='16'> " .. (myform.name.value or '') .. "</DT><DD>")
io.write("<TABLE STYLE='margin-bottom:10px'>")
- io.write("<TR><TD COLSPAN=2 STYLE='font-weight:bold;'><IMG SRC='/static/tango/16x16/devices/network-wired.png' width='16' height='16'> " .. (myform.name.value or '') .. "</TD></TR>")
+-- io.write("<TR><TD COLSPAN=2 STYLE='font-weight:bold;'><IMG SRC='/static/tango/16x16/devices/network-wired.png' width='16' height='16'> " .. (myform.name.value or '') .. "</TD></TR>")
local tags = {"method", "address", "netmask", "gateway", "provider", "hostname", "pre-up", "up", "down", "post-down", "comment", }
for k1,v1 in pairs(tags) do
if (myform[v1]['value'] ~= "") then
- io.write("<TR><TD WIDTH='120px' STYLE='font-weight:bold;padding-left:25px;'>" .. myform[v1]['label'] .. "</TD>")
+ io.write("<TR><TD WIDTH='120px' STYLE='font-weight:bold;'>" .. myform[v1]['label'] .. "</TD>")
io.write("<TD>" .. string.gsub(myform[v1]['value'], "\n", "<BR>") .. "</TD></TR>")
end
end