Enhanced about box with platform bits

This commit is contained in:
Luca Deri 2015-06-11 18:20:36 +02:00
parent 6cea39bbfd
commit 73811618f8
2 changed files with 4 additions and 4 deletions

View file

@ -67,9 +67,8 @@ end
print("</td></tr>")
vers = string.split(info["version.git"], ":")
if((vers ~= nil) and (vers[1] ~= nil)) then
v_hash = string.sub(vers[1], 2)
ntopng_git_url = "<A HREF=https://github.com/ntop/ntopng/commit/".. v_hash ..">"..info["version"].."</A>"
if((vers ~= nil) and (vers[2] ~= nil)) then
ntopng_git_url = "<A HREF=https://github.com/ntop/ntopng/commit/".. vers[2] ..">"..info["version"].."</A>"
else
ntopng_git_url = info["version"]
end
@ -88,7 +87,7 @@ end
print(" Edition</td></tr>\n")
print("<tr><th>Platform</th><td>"..info["platform"].."</td></tr>\n")
print("<tr><th>Platform</th><td>"..info["platform"].." - "..info["bits"] .." bit</td></tr>\n")
print("<tr><th>Currently Logged User</th><td><i class='fa fa-user fa-lg'></i> ".._SESSION["user"].."</td></tr>\n")
print("<tr><th>Uptime</th><td><i class='fa fa-clock-o fa-lg'></i> "..secondsToTime(info["uptime"]).."</td></tr>\n")
print("<tr><th colspan=2 align=center>&nbsp;</th></tr>\n")