summaryrefslogtreecommitdiffstats
path: root/opennhrp-status-html.lsp
diff options
context:
space:
mode:
authorMika Havela <mika.havela@gmail.com>2008-03-31 15:35:57 +0000
committerMika Havela <mika.havela@gmail.com>2008-03-31 15:35:57 +0000
commit0cd84aec11e0a54ab6e6beae46813e4e71ba27bd (patch)
treedb4fb022cecad1afd6d5ce3c7738d34df3e75452 /opennhrp-status-html.lsp
parentc673190e23ddccd06e6365b2e1f35f446c0fcddd (diff)
downloadacf-opennhrp-0cd84aec11e0a54ab6e6beae46813e4e71ba27bd.tar.bz2
acf-opennhrp-0cd84aec11e0a54ab6e6beae46813e4e71ba27bd.tar.xz
Added description to the different types.
git-svn-id: svn://svn.alpinelinux.org/acf/opennhrp/trunk@865 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'opennhrp-status-html.lsp')
-rw-r--r--opennhrp-status-html.lsp6
1 files changed, 5 insertions, 1 deletions
diff --git a/opennhrp-status-html.lsp b/opennhrp-status-html.lsp
index 180c291..0d84bc1 100644
--- a/opennhrp-status-html.lsp
+++ b/opennhrp-status-html.lsp
@@ -65,7 +65,11 @@ for k,v in pairs(myform.option or {}) do
if (k2) and not ((string.lower(k2) == "protocol-address") or
(string.lower(k2) == "tooltip") or
(string.lower(k2) == "interface")) then
- io.write("<TR><TD STYLE='font-weight:bold;padding-left:40px;'>"..k2.."</TD><TD>"..v2.."</TD></TR>\n")
+ io.write("<TR><TD STYLE='font-weight:bold;padding-left:40px;'>"..k2.."</TD><TD>"..v2)
+ if (string.lower(k2) == "type") then
+ io.write(" <I>(" .. (v1['type_descr'] or "") .. ")</I>")
+ end
+ io.write("</TD></TR>\n")
end
end