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.
cvm/frontend/templates/vps.overview.tpl

108 lines
3.2 KiB
Smarty

<h1>{%!title-overview}</h1>
13 years ago
<div class="quota">
<div class="quota-item">
<h3>{%!overview-quota-title-disk}</h3>
13 years ago
<div class="quota-bar">
<div class="quota-bar-inner" style="width: {%?disk-percentage}%;"></div>
<div class="quota-bar-label">{%?disk-used}/{%?disk-total}{%?disk-unit}</div>
13 years ago
</div>
</div>
<div class="quota-item">
<h3>{%!overview-quota-title-ram}</h3>
13 years ago
<div class="quota-bar">
<div class="quota-bar-inner" style="width: {%?ram-percentage}%;"></div>
<div class="quota-bar-label">{%?ram-used}/{%?ram-total}{%?ram-unit}</div>
13 years ago
</div>
</div>
<div class="quota-item last">
<h3>{%!overview-quota-title-traffic}</h3>
13 years ago
<div class="quota-bar">
<div class="quota-bar-inner" style="width: {%?traffic-percentage}%;"></div>
<div class="quota-bar-label">{%?traffic-used}/{%?traffic-total}{%?traffic-unit}</div>
13 years ago
</div>
</div>
<div class="clear"></div>
</div>
<div class="controlbox">
<a class="controlbutton button-loader" href="/{%?id}/start/">
13 years ago
<img src="/images/button_start.png" class="button-icon">
{%!overview-button-start}
13 years ago
</a>
<a class="controlbutton button-loader" href="/{%?id}/restart/">
13 years ago
<img src="/images/button_restart.png" class="button-icon">
{%!overview-button-restart}
13 years ago
</a>
<a class="controlbutton button-loader last" href="/{%?id}/stop/">
13 years ago
<img src="/images/button_stop.png" class="button-icon">
{%!overview-button-stop}
13 years ago
</a>
<div class="clear"></div>
</div>
<h2>{%!overview-title-configuration}</h2>
<table class="vpsinfo vertical">
<tr>
<th>{%!overview-title-status}</th>
<td>
{%if status == running}
<span class="online">{%!overview-status-running}</span>
{%/if}{%if status == stopped}
<span class="offline">{%!overview-status-stopped}</span>
{%/if}{%if status == suspended}
<span class="suspended">{%!overview-status-suspended}</span>
{%/if}{%if status == unknown}
<span class="unknown">{%!overview-status-unknown}</span>
{%/if}
</td>
<th>{%!overview-title-os}</th>
<td>{%?operating-system}</td>
</tr>
<tr>
<th>{%!overview-title-guaranteed}</th>
<td>{%?guaranteed-ram}</td>
<th>{%!overview-title-burstable}</th>
<td>{%?burstable-ram}</td>
</tr>
<tr>
<th>{%!overview-title-disk}</th>
<td>{%?disk-space}</td>
<th>{%!overview-title-bandwidth}</th>
<td>{%?bandwidth-limit}</td>
</tr>
<tr>
{%if total-traffic-limit == "0B"}
<th>{%!overview-title-traffic-incoming}</th>
<td>{%?incoming-traffic-limit}</td>
<th>{%!overview-title-traffic-outgoing}</th>
<td>{%?outgoing-traffic-limit}</td>
{%else}
<th>{%!overview-title-traffic}</th>
<td colspan="3">{%?total-traffic-limit}</td>
{%/if}
</tr>
<tr>
<th>{%!overview-title-location}</th>
<td colspan="3">{%?server-location}</td>
</tr>
<tr>
<th>{%!overview-title-ipv4}</th>
<td colspan="3"></td>
</tr>
<tr>
<th>{%!overview-title-ipv6}</th>
<td colspan="3"></td>
</tr>
</table>
12 years ago
{%if accesslevel = 20}
<h3>{%!header-vps-admin}</h3>
<div class="vps-admin">
<a href="/admin/container/{%?id}/suspend/">{%!vps-admin-suspend}</a>
<a href="/admin/container/{%?id}/transfer/">{%!vps-admin-transfer}</a>
<a href="/admin/container/{%?id}/terminate/">{%!vps-admin-terminate}</a>
</div>
<div class="clear"></div>
{%/if}