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.
94 lines
2.3 KiB
Smarty
94 lines
2.3 KiB
Smarty
<div class="toolbar">
|
|
<a href="/admin/user/{%?id}/add/">{%!toolbar-createvps}</a>
|
|
<a href="/admin/user/{%?id}/edit/">{%!toolbar-edituser}</a>
|
|
<div class="clear"></div>
|
|
</div>
|
|
|
|
<h2>{%!title-admin-userinfo}</h2>
|
|
|
|
<table class="userinfo vertical">
|
|
<tr>
|
|
<th>{%!admin-title-id}</th>
|
|
<td>{%?id}</td>
|
|
</tr>
|
|
<tr>
|
|
<th>{%!admin-title-username}</th>
|
|
<td>{%?username}</td>
|
|
</tr>
|
|
<tr>
|
|
<th>{%!admin-title-email}</th>
|
|
<td>{%?email}</td>
|
|
</tr>
|
|
<tr>
|
|
<th>{%!admin-title-accesslevel}</th>
|
|
<td>
|
|
{%if accesslevel == 1}
|
|
{%!admin-level-enduser}
|
|
{%/if}{%if accesslevel == 10}
|
|
{%!admin-level-reseller}
|
|
{%/if}{%if accesslevel == 20}
|
|
{%!admin-level-nodeadmin}
|
|
{%/if}{%if accesslevel == 30}
|
|
{%!admin-level-masteradmin}
|
|
{%/if}
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>{%!admin-title-containers}</th>
|
|
<td>{%?containercount}</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<h3>{%!header-admin-user-containers}</h3>
|
|
<table class="vpslist">
|
|
<tr>
|
|
<th></th>
|
|
<th>{%!list-column-hostname}</th>
|
|
<th>{%!list-column-platform}</th>
|
|
<th>{%!list-column-disk}</th>
|
|
<th>{%!list-column-ram}</th>
|
|
<th>{%!list-column-template}</th>
|
|
</tr>
|
|
{%foreach container in containers}
|
|
<tr class="clickable" data-url="/{%?container[id]}/">
|
|
<td class="container-status">
|
|
{%if vps[status] == running}
|
|
<img src="/images/icon_online.png" alt="{%!list-status-running}">
|
|
{%elseif vps[status] == stopped}
|
|
<img src="/images/icon_offline.png" alt="{%!list-status-stopped}">
|
|
{%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>
|
|
<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>
|
|
{%?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>
|
|
</tr>
|
|
{%/foreach}
|
|
</table>
|