You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
64 lines
1.8 KiB
Smarty
64 lines
1.8 KiB
Smarty
<table class="pure-table pure-table-bordered stretch vps-list">
|
|
<thead>
|
|
<tr>
|
|
<th></th>
|
|
<th>{%!list-column-hostname}</th>
|
|
<th>{%!list-column-platform}</th>
|
|
<th>{%!list-column-node}</th>
|
|
<th>{%!list-column-disk}</th>
|
|
<th>{%!list-column-ram}</th>
|
|
<th>{%!list-column-template}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{%foreach vps in vpses}
|
|
<tr class="clickable" data-url="/{%?vps[id]}/">
|
|
<td class="vps-status">
|
|
{%if vps[status] == running}
|
|
<img src="/templates/default/static/images/status/online.png" alt="{%!list-status-running}">
|
|
{%elseif vps[status] == stopped}
|
|
<img src="/templates/default/static/images/status/offline.png" alt="{%!list-status-stopped}">
|
|
{%elseif vps[status] == suspended}
|
|
<img src="/templates/default/static/images/status/suspended.png" alt="{%!list-status-suspended}">
|
|
{%else}
|
|
<img src="/templates/default/static/images/status/unknown.png" alt="{%!list-status-unknown}">
|
|
{%/if}
|
|
</td>
|
|
<td>
|
|
<a href="/{%?vps[id]}/">
|
|
{%?vps[hostname]}
|
|
</a>
|
|
</td>
|
|
<td>
|
|
<a href="/{%?vps[id]}/">
|
|
{%if vps[virtualization-type] == 1}
|
|
OpenVZ
|
|
{%/if}{%if vps[virtualization-type] == 2}
|
|
Xen PV
|
|
{%/if}{%if vps[virtualization-type] == 3}
|
|
Xen HVM
|
|
{%/if}{%if vps[virtualization-type] == 4}
|
|
KVM
|
|
{%/if}
|
|
</a>
|
|
</td>
|
|
<td>
|
|
<a href="/{%?vps[id]}/">
|
|
<span class="nodename">{%?vps[node]}</span>
|
|
<span class="hostname">({%?vps[node-hostname]})</span>
|
|
</a>
|
|
</td>
|
|
<td>
|
|
{%?vps[diskspace]}
|
|
<span class="unit">{%?vps[diskspace-unit]}</span>
|
|
</td>
|
|
<td>
|
|
{%?vps[guaranteed-ram]}
|
|
<span class="unit">{%?vps[guaranteed-ram-unit]}</span>
|
|
</td>
|
|
<td>{%?vps[template]}</td>
|
|
</tr>
|
|
{%/foreach}
|
|
</tbody>
|
|
</table>
|