X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/blobdiff_plain/b26a7d35e4ac578595f88eef03303cfbfd42a319..e37dd15bbf8683bab8454ea0eec8e9968ce982b2:/templates/list.tmpl diff --git a/templates/list.tmpl b/templates/list.tmpl deleted file mode 100644 index 6e06c53..0000000 --- a/templates/list.tmpl +++ /dev/null @@ -1,136 +0,0 @@ -#from skeleton import skeleton -#extends skeleton - - -#def title -List of your VMs -#end def - -#def createTable() -#if $cant_add_vm -

$cant_add_vm

-#else -

Create a new VM:

-#if $err -

We had a problem with your request:

-#else if $varExists('new_machine') -

Congratulations! You successfully created a new VM called $new_machine.

-#end if -
- - - $errorRow('create', $err) - - - - -$errorRow('name', $err) - - - - -$errorRow('memory', $err) - - - - -$errorRow('disk', $err) - - - - -$errorRow('vmtype', $err) - - - - -$errorRow('cdrom', $err) - - - - - $errorRow('owner', $err) -
Name
Memory MiB ($max_memory max)
Disk GiB (${"%0.1f" % ($max_disk-0.05)} max)
HVM/ParaVM$helppopup('hvm_paravm') -#for $value, $name in (('hvm', 'HVM'), ('paravm', 'ParaVM')) - $name -#end for -
Boot CD$cdromList($cdroms, $defaults.cdrom)
Owner
- -
-#end if -#end def - -#def machineRow($machine) - - $machine.name - ${machine.memory}M - $machine.owner - $machine.administrator -#if $machine.nics -#set $nic = $machine.nics[0] - $nic.ip -#else - -#end if -#slurp -#if $machine.uptime -$machine.uptime#slurp -#else -Off#slurp -#end if - - #slurp -#if $has_vnc[$machine] == True -Console#slurp -#else -$has_vnc[$machine] -#end if - - -
- - - -
- - -#end def - -#def machineList($machines) - - - - - - - - - - - #for $machine in $machines: - $machineRow($machine) - #end for -
NameMemoryOwnerAdministratorIPUptimeVNC
-#end def - - -#def body -

Note: sipb-xen is a very alpha service. What does this mean?

-#if not $machines -

You don't currently control any VMs.

-#else -

You have the following VMs:

-#end if -

refresh

-
- $machineList($machines) -
-
-$createTable() -
-#end def