X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/blobdiff_plain/e0e7814e58df1dc0342e3f88e7bcfad4ed483079..bbec77c6bd300144f1a222cc686917625a1b4d23:/templates/list.tmpl diff --git a/templates/list.tmpl b/templates/list.tmpl index 19b108e..a27fe0b 100644 --- a/templates/list.tmpl +++ b/templates/list.tmpl @@ -20,7 +20,7 @@ List of your VMs Hostname Uptime VNC - Restart? + #for $machine in $machines: $machine.name @@ -37,32 +37,35 @@ List of your VMs #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) == True +#if $has_vnc[$machine] == True Console#slurp #else -$has_vnc.get($machine.name) +$has_vnc[$machine] #end if
- +#if $uptimes[$machine] + +#else + +#end if
#end for #end if - +#if $can_add_vm

Create a new VM:

@@ -72,11 +75,11 @@ $has_vnc.get($machine.name) - + - + @@ -101,5 +104,7 @@ $has_vnc.get($machine.name)
Memory megabytes ($maxmem max) megabytes ($max_mem max)
Disk gigabytes ($maxdisk max) gigabytes (${"%0.1f" % ($max_disk-0.05)} max)
HVM/ParaVM$helppopup('hvm_paravm')
- +#else +

You are at the maximum number of VMs.

+#end if #end def