mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
Improved hardware model display
This commit is contained in:
parent
e6e9cbe333
commit
e5343e1ab7
2 changed files with 35 additions and 38 deletions
|
|
@ -38,15 +38,11 @@ if info["pro.systemid"] then
|
|||
print(info["pro.systemid"].." <A HREF=\"".. ntop.getHttpPrefix() .. "/lua/license.lua\"><i class=\"fas fa-cog\"></i></A></td></tr>\n")
|
||||
end
|
||||
|
||||
local hw_model = info["model"]
|
||||
|
||||
if(hw_model ~= nil) then
|
||||
hw_model = " ["..hw_model.."]"
|
||||
else
|
||||
hw_model = ""
|
||||
print("<tr><th nowrap>"..i18n("about.platform").."</th><td colspan=2>"..info["platform"].." - "..info["bits"] .." bit".."</td></tr>\n")
|
||||
if(info["hw_model"] ~= nil) then
|
||||
print("<tr><th nowrap>"..i18n("about.hw_model").."</th><td colspan=2>"..info["hw_model"].."</td></tr>\n")
|
||||
end
|
||||
|
||||
print("<tr><th nowrap>"..i18n("about.platform").."</th><td colspan=2>"..info["platform"].." - "..info["bits"] .." bit"..hw_model.."</td></tr>\n")
|
||||
print("<tr><th nowrap>"..i18n("about.startup_line").."</th><td colspan=2>".. info["product"] .." "..info["command_line"].."</td></tr>\n")
|
||||
print("<tr><th nowrap>"..i18n("about.timezone").."</th><td colspan=2>".. info.zoneinfo.."</td></tr>\n")
|
||||
--print("<tr><th colspan=2 align=center> </th></tr>\n")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue