diff options
-rw-r--r-- | opennhrp-model.lua | 2 | ||||
-rw-r--r-- | opennhrp-status-html.lsp | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/opennhrp-model.lua b/opennhrp-model.lua index af5046f..f809283 100644 --- a/opennhrp-model.lua +++ b/opennhrp-model.lua @@ -75,6 +75,8 @@ local function opennhrpctl_show() if (string.lower(k) == "type") then local tooltip = string.match(v,"^.-:%s?(.*)") cmd_output_result_table[cnt]["Tooltip"] = type_status[tooltip] + local typestatus = string.lower(string.match(v,"^.-:%s?(.*)")) + cmd_output_result_table[cnt]['type_descr']=(type_status[typestatus] or "") end end end 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 |