Visual modifications

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

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

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

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

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

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

@ -17,7 +17,7 @@
<%if logged-in == true> <%if logged-in == true>
<div class="userbox"> <div class="userbox">
<div>You are logged in as <strong><%?username></strong>.</div> <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> </div>
<%/if> <%/if>
</div> </div>

Loading…
Cancel
Save