Rewrote status section of container overview

feature/node-rewrite
Sven Slootweg 13 years ago
parent 562a77cf31
commit a3f56fb3d4

@ -38,6 +38,6 @@ $sPageContents = Templater::InlineRender("vps.overview", $locale->strings, array
'disk-space' => "{$sContainer->sDiskSpace}MB",
'total-traffic-limit' => "{$sContainer->sTotalTrafficLimit} bytes",
'bandwidth-limit' => "100mbit",
'status' => Templater::InlineRender("status.{$sContainer->sStatusText}", $locale->strings)
'status' => $sContainer->sStatusText
));
?>

@ -16,8 +16,6 @@ require("includes/include.base.php");
$sTemplateParameters = array();
$_SESSION['userid'] = 1;
if(!empty($_SESSION['userid']))
{
$sUser = new User($_SESSION['userid']);

@ -1 +0,0 @@
<span class="online">Running</span>

@ -1 +0,0 @@
<span class="offline">Stopped</span>

@ -1 +0,0 @@
<span class="suspended">Suspended</span>

@ -1 +0,0 @@
<span class="unknown">Unknown</span>

@ -47,7 +47,17 @@
<table class="vpsinfo">
<tr>
<th>Status</th>
<td><%?status></td>
<td>
<%if status == running>
<span class="online">Running</span>
<%/if><%if status == stopped>
<span class="offline">Stopped</span>
<%/if><%if status == suspended>
<span class="suspended">Suspended</span>
<%/if><%if status == unknown>
<span class="unknown">Unknown</span>
<%/if>
</td>
</tr>
<tr>
<th>Server location</th>

Loading…
Cancel
Save