X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/blobdiff_plain/fbb16ba8e40d6b99bc7501faf4ebd934631900ca..f3c1b256ad0f930d2f7fc623ad538692a3829979:/templates/list.tmpl diff --git a/templates/list.tmpl b/templates/list.tmpl index 73e7c0a..05b5c2c 100644 --- a/templates/list.tmpl +++ b/templates/list.tmpl @@ -16,11 +16,10 @@ List of your VMs Memory owner IP - MAC Address Hostname Uptime VNC - Restart? + #for $machine in $machines: $machine.name @@ -29,57 +28,58 @@ List of your VMs #if $machine.nics #set $nic = $machine.nics[0] $nic.ip - $nic.mac_addr $nic.hostname #else - #end if #slurp -#if $uptimes.get($machine.name) -$uptimes[$machine.name]#slurp +#if $uptimes[$machine] +$uptimes[$machine]#slurp #else Off#slurp #end if #slurp -#if $has_vnc.get($machine.name) +#if $has_vnc[$machine] == True Console#slurp #else -off#slurp +$has_vnc[$machine] #end if
- +#if $uptimes[$machine] + +#else + +#end if
#end for #end if - +#if $can_add_vm

Create a new VM:

- + - + - + - +
Name${user.username}_
Memory megabytes ($maxmem max) megabytes ($max_mem max)
Disk gigabytes ($maxdisk max) gigabytes (${"%0.1f" % ($max_disk-0.05)} max)
HVM/ParaVMHVM/ParaVM$helppopup('hvm_paravm') HVM ParaVM @@ -101,5 +101,7 @@ off#slurp
- +#else +

You are at the maximum number of VMs.

+#end if #end def