{if isset($error_messages) && !empty($error_messages)}
{foreach from=$error_messages item=message}

{$message}

{/foreach}
{/if} {if isset($success_message)}

{$success_message}

{/if} {if $widget eq 'general'}
{if isset($empty)}

Cluster - Name : {$resources.name|default:''} {if isset($resources.page)}

{$lang.ADM_NODE_GOTO}{/if}

{$resources.cpu_name|upper}

{$resources.ram_name|upper}

{$resources.sr_name|upper}

{if $virt_type eq 'cluster'}
N/A N/A N/A
{/if}
{else}

Cluster - Name : {$resources.name|default:''} {if isset($resources.page)}

{$lang.ADM_NODE_GOTO}{/if}

{$resources.cpu_name|upper}

{$resources.cpu_message}

{$resources.ram_name|upper}

{$resources.ram_message}

{$resources.sr_name|upper}

{$resources.sr_message}

{if $virt_type eq 'cluster'}
{if $resources.status_value eq 'up' } {else} {/if} {if $resources.clustered_value eq $lang.VIRT_YES } {else} {/if} {if $resources.ha_value eq $lang.VIRT_YES } {else} {/if}
{$resources.status_value|upper}{$resources.status_value|upper}{$resources.clustered_value|upper}{$resources.clustered_value|upper}{$resources.ha_value|upper}{$resources.ha_value|upper}
{/if} {/if}
{elseif $widget eq 'vm'} {if isset($empty)}

VM

{$lang.VIRT_TOTAL} : {$vm_stats.total|default:0}
Loading...
{else}

VM

{$lang.VIRT_TOTAL} : {$vm_stats.total}
{if $virt_type eq 'cluster'} {elseif $virt_type eq 'hypervisor'} {/if}

{$lang.VIRT_RUNNING} {$vm_stats.running}

{$lang.VIRT_PAUSED} {$vm_stats.paused}

{$lang.VIRT_STOPPED} {$vm_stats.stopped}

{$lang.VIRT_RUNNING} {$vm_host.running}/{$vm_stats.running}

{$lang.VIRT_PAUSED} {$vm_host.paused}/{$vm_stats.paused}

{$lang.VIRT_STOPPED} {$vm_host.stopped}/{$vm_stats.stopped}

{/if} {elseif $widget eq 'hypervisors'} {if $virt_type eq 'cluster'}

{$lang.VIRT_HOSTS}

{$lang.VIRT_TOTAL} : {$host_list|count}
{if isset($empty)} {foreach from=$host_list item=host} {/foreach}
{$lang.VIRT_NAME} {$lang.VIRT_STATUS} {$lang.VIRT_ADDRESS} {$lang.VIRT_CPU} {$lang.VIRT_MEMORY} {$lang.VIRT_UPTIME}
{$host.name}
Loading...
{if !empty($host.page)} {$lang.ADM_NODE_GOTO} {/if}
{else} {foreach from=$host_list item=host} {$host.name} {if $host.status}{$lang.VIRT_ONLINE} {else}{$lang.VIRT_OFFLINE}{/if} {$host.address} {if $host.cpu_status eq 'OK'}
{elseif $host.cpu_status eq 'WARNING'}
{else}
{/if} {if isset($host.cpu_percent)}
{$host.cpu_percent}%
{$host.cpu_percent}%
{/if}
{if $host.mem_status eq 'OK'}
{elseif $host.mem_status eq 'WARNING'}
{else}
{/if} {if isset($host.mem_percent)}
{$host.mem_percent}%
{$host.mem_percent}%
{/if}
{$host.uptime|truncate:20|escape:'html'} {*

{$host.uptime|escape:'html'}

*} {if empty($host.page) && $admin_granted} {$lang.ADM_NODE_ADD} {elseif !empty($host.page)} {$lang.ADM_NODE_GOTO} {/if} {/foreach}
{/if} {else}
{if isset($empty)}

Host

Loading...
{else}

Host {$current_host.name|default:''}

OS :
Uptime :
{$current_host.os} {$current_host.os_version}
{$current_host.uptime}
Address :
Network :
{$current_host.address}

{$current_host.net_in}

{$current_host.net_out}

{/if}
{/if}
{/if}