diff options
Diffstat (limited to 'interfaces-read-html.lsp')
-rw-r--r-- | interfaces-read-html.lsp | 8 |
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 |