WebAdmin: Removed server name, shortened memory report.
This commit is contained in:
parent
db7b3bc888
commit
be4ac22b52
@ -26,9 +26,6 @@ function GetDefaultPage()
|
|||||||
local SubTitle = "Current Game"
|
local SubTitle = "Current Game"
|
||||||
local Content = ""
|
local Content = ""
|
||||||
|
|
||||||
Content = Content .. "<h4>Server Name:</h4>"
|
|
||||||
Content = Content .. "<p>" .. cRoot:Get():GetServer():GetServerID() .. "</p>"
|
|
||||||
|
|
||||||
Content = Content .. "<h4>Plugins:</h4><ul>"
|
Content = Content .. "<h4>Plugins:</h4><ul>"
|
||||||
PM:ForEachPlugin(
|
PM:ForEachPlugin(
|
||||||
function (a_CBPlugin)
|
function (a_CBPlugin)
|
||||||
@ -104,9 +101,8 @@ function ShowPage(WebAdmin, TemplateRequest)
|
|||||||
<div class="upper">
|
<div class="upper">
|
||||||
<div class="wrapper">
|
<div class="wrapper">
|
||||||
<ul class="menu top_links">
|
<ul class="menu top_links">
|
||||||
<li><a>Server Name: <strong>]] .. cRoot:Get():GetServer():GetServerID() .. [[</strong></a></li>
|
|
||||||
<li><a>Players online: <strong>]] .. NumPlayers .. [[</strong></a></li>
|
<li><a>Players online: <strong>]] .. NumPlayers .. [[</strong></a></li>
|
||||||
<li><a>Memory: <strong>]] .. MemoryUsageKiB / 1024 .. [[MB</strong></a></li>
|
<li><a>Memory: <strong>]] .. string.format("%.2f", MemoryUsageKiB / 1024) .. [[MB</strong></a></li>
|
||||||
<li><a>Chunks: <strong>]] .. NumChunks .. [[</strong></a></li>
|
<li><a>Chunks: <strong>]] .. NumChunks .. [[</strong></a></li>
|
||||||
</ul>
|
</ul>
|
||||||
<div class="welcome"><strong>Welcome back, ]] .. TemplateRequest.Request.Username .. [[</strong> <a href=".././"><img src="/log_out.png" style="vertical-align:bottom;"> Log Out</a></div>
|
<div class="welcome"><strong>Welcome back, ]] .. TemplateRequest.Request.Username .. [[</strong> <a href=".././"><img src="/log_out.png" style="vertical-align:bottom;"> Log Out</a></div>
|
||||||
|
Loading…
Reference in New Issue
Block a user