Visual modifications

feature/node-rewrite
Sven Slootweg 13 years ago
parent 8f6fc55f0e
commit 33284c31e3

@ -76,11 +76,27 @@ table.vpsinfo th
width: 150px;
}
table.vpslist tr:hover
{
background-color: #BABAD0;
}
.clickable a
{
color: black;
text-decoration: none;
}
.clear
{
clear: both;
}
.clickable
{
cursor: pointer;
}
.preload
{
width: 1px;

@ -1,6 +1,10 @@
var command_running = false;
$(function(){
$('.clickable').click(function(){
window.location.href = $(this).data('url');
});
$('.button-loader').click(function(){
if(command_running === false)
{

@ -23,6 +23,7 @@ if($sLoggedIn === true)
{
$sContainer = new Container($row);
$sContainerList[] = array(
'id' => $sContainer->sId,
'hostname' => $sContainer->sHostname,
'node' => $sContainer->sNode->sName,
'node-hostname' => $sContainer->sNode->sHostname,

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

@ -1,4 +1,4 @@
<table>
<table class="vpslist">
<tr>
<th></th>
<th>Hostname</th>
@ -9,7 +9,7 @@
<th>Template</th>
</tr>
<%foreach container in containers>
<tr>
<tr class="clickable" data-url="/<%?container[id]>/">
<td class="container-status">
<%if container[status] == running>
<img src="/images/icon_online.png" alt="Running">
@ -19,21 +19,29 @@
<img src="/images/icon_suspended.png" alt="Suspended">
<%/if>
</td>
<td><%?container[hostname]></td>
<td>
<%if container[virtualization-type] == 1>
OpenVZ
<%/if><%if container[virtualization-type] == 2>
Xen PV
<%/if><%if container[virtualization-type] == 3>
Xen HVM
<%/if><%if container[virtualization-type] == 4>
KVM
<%/if>
<a href="/<%?container[id]>/">
<%?container[hostname]>
</a>
</td>
<td>
<a href="/<%?container[id]>/">
<%if container[virtualization-type] == 1>
OpenVZ
<%/if><%if container[virtualization-type] == 2>
Xen PV
<%/if><%if container[virtualization-type] == 3>
Xen HVM
<%/if><%if container[virtualization-type] == 4>
KVM
<%/if>
</a>
</td>
<td>
<span class="nodename"><%?container[node]></span>
<span class="hostname">(<%?container[node-hostname]>)</span>
<a href="/<%?container[id]>/">
<span class="nodename"><%?container[node]></span>
<span class="hostname">(<%?container[node-hostname]>)</span>
</a>
</td>
<td>
<%?container[diskspace]>

@ -17,7 +17,7 @@
<%if logged-in == true>
<div class="userbox">
<div>You are logged in as <strong><%?username></strong>.</div>
<div><a href="/">Account overview</a> | <a href="/containers/">My VPSes</a></div>
<div><a href="/account/">Account settings</a> | <a href="/">My VPSes</a></div> | <a href="/logout/">Log out</a></div>
</div>
<%/if>
</div>

Loading…
Cancel
Save