Improved display of VPS overview

feature/node-rewrite
Sven Slootweg 13 years ago
parent b30e8a9eb3
commit 2bf0645889

@ -32,12 +32,28 @@ p
table table
{ {
font-size: 15px;
border-spacing: 0px;
width: 100%;
} }
th th
{ {
text-align: left; text-align: left;
background-color: #12005E;
color: white;
padding: 3px 4px;
}
td
{
vertical-align: top;
padding: 4px 4px 0px 4px;
}
td.container-status img
{
margin-top: 3px;
} }
table.vpsinfo td table.vpsinfo td
@ -291,6 +307,21 @@ table.vpsinfo td
margin-top: 4px; margin-top: 4px;
} }
.nodename
{
font-size: 14px;
}
.hostname
{
font-size: 13px;
color: gray;
}
.unit
{
color: gray;
}
/* CPHPErrorHandler styles */ /* CPHPErrorHandler styles */

@ -27,8 +27,10 @@ if($sLoggedIn === true)
'node' => $sContainer->sNode->sName, 'node' => $sContainer->sNode->sName,
'node-hostname' => $sContainer->sNode->sHostname, 'node-hostname' => $sContainer->sNode->sHostname,
'template' => $sContainer->sTemplate->sName, 'template' => $sContainer->sTemplate->sName,
'diskspace' => $sContainer->sDiskSpace, 'diskspace' => number_format($sContainer->sDiskSpace / 1024),
'diskspace-unit' => "GB",
'guaranteed-ram' => $sContainer->sGuaranteedRam, 'guaranteed-ram' => $sContainer->sGuaranteedRam,
'guaranteed-ram-unit' => "MB",
'status' => $sContainer->sStatusText, 'status' => $sContainer->sStatusText,
'virtualization-type' => $sContainer->sVirtualizationType 'virtualization-type' => $sContainer->sVirtualizationType
); );

@ -10,7 +10,7 @@
</tr> </tr>
<%foreach container in containers> <%foreach container in containers>
<tr> <tr>
<td> <td class="container-status">
<%if container[status] == running> <%if container[status] == running>
<img src="/images/icon_online.png" alt="Running"> <img src="/images/icon_online.png" alt="Running">
<%/if><%if container[status] == stopped> <%/if><%if container[status] == stopped>
@ -31,9 +31,18 @@
KVM KVM
<%/if> <%/if>
</td> </td>
<td><%?container[node]> (<%?container[node-hostname]>)</td> <td>
<td><%?container[diskspace]></td> <span class="nodename"><%?container[node]></span>
<td><%?container[guaranteed-ram]></td> <span class="hostname">(<%?container[node-hostname]>)</span>
</td>
<td>
<%?container[diskspace]>
<span class="unit"><%?container[diskspace-unit]></span>
</td>
<td>
<%?container[guaranteed-ram]>
<span class="unit"><%?container[guaranteed-ram-unit]></span>
</td>
<td><%?container[template]></td> <td><%?container[template]></td>
</tr> </tr>
<%/foreach> <%/foreach>

Loading…
Cancel
Save