Show 'unknown' as a separate VPS status

feature/node-rewrite
Sven Slootweg 12 years ago
parent df925fd194
commit d403684d93

@ -257,6 +257,7 @@ list-column-nodeid; Node ID
list-status-running; Running
list-status-stopped; Stopped
list-status-suspended; Suspended
list-status-unknown; Status unknown
## Node list
title-admin-nodelist; Node overview

@ -27,7 +27,7 @@ if($result = mysql_query_cached("SELECT * FROM containers"))
}
catch (SshException $e)
{
$sStatus = "stopped";
$sStatus = "unknown";
}
$sVpsList[] = array(

@ -29,7 +29,7 @@ if($sLoggedIn === true)
}
catch (SshException $e)
{
$sStatus = "stopped";
$sStatus = "unknown";
}
$sContainerList[] = array(

@ -35,12 +35,14 @@
{%foreach container in containers}
<tr class="clickable" data-url="/{%?container[id]}/">
<td class="container-status">
{%if container[status] == running}
{%if vps[status] == running}
<img src="/images/icon_online.png" alt="{%!list-status-running}">
{%/if}{%if container[status] == stopped}
{%elseif vps[status] == stopped}
<img src="/images/icon_offline.png" alt="{%!list-status-stopped}">
{%/if}{%if container[status] == suspended}
{%elseif vps[status] == suspended}
<img src="/images/icon_suspended.png" alt="{%!list-status-suspended}">
{%else}
<img src="/images/icon_unknown.png" alt="{%!list-status-unknown}">
{%/if}
</td>
<td>

@ -52,14 +52,15 @@
{%foreach container in containers}
<tr class="clickable" data-url="/{%?container[id]}/">
<td class="container-status">
{%if container[status] == running}
{%if vps[status] == running}
<img src="/images/icon_online.png" alt="{%!list-status-running}">
{%/if}{%if container[status] == stopped}
{%elseif vps[status] == stopped}
<img src="/images/icon_offline.png" alt="{%!list-status-stopped}">
{%/if}{%if container[status] == suspended}
{%elseif vps[status] == suspended}
<img src="/images/icon_suspended.png" alt="{%!list-status-suspended}">
{%else}
<img src="/images/icon_unknown.png" alt="{%!list-status-unknown}">
{%/if}
</td>
<td>
<a href="/{%?container[id]}/">
{%?container[hostname]}

@ -14,10 +14,12 @@
<td class="container-status">
{%if vps[status] == running}
<img src="/images/icon_online.png" alt="{%!list-status-running}">
{%/if}{%if vps[status] == stopped}
{%elseif vps[status] == stopped}
<img src="/images/icon_offline.png" alt="{%!list-status-stopped}">
{%/if}{%if vps[status] == suspended}
{%elseif vps[status] == suspended}
<img src="/images/icon_suspended.png" alt="{%!list-status-suspended}">
{%else}
<img src="/images/icon_unknown.png" alt="{%!list-status-unknown}">
{%/if}
</td>
<td>

@ -11,12 +11,14 @@
{%foreach container in containers}
<tr class="clickable" data-url="/{%?container[id]}/">
<td class="container-status">
{%if container[status] == running}
{%if vps[status] == running}
<img src="/images/icon_online.png" alt="{%!list-status-running}">
{%/if}{%if container[status] == stopped}
{%elseif vps[status] == stopped}
<img src="/images/icon_offline.png" alt="{%!list-status-stopped}">
{%/if}{%if container[status] == suspended}
{%elseif vps[status] == suspended}
<img src="/images/icon_suspended.png" alt="{%!list-status-suspended}">
{%else}
<img src="/images/icon_unknown.png" alt="{%!list-status-unknown}">
{%/if}
</td>
<td>

Loading…
Cancel
Save