X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/blobdiff_plain/867613f209f2f414afd261258c73b6adf4bdd905..b26a7d35e4ac578595f88eef03303cfbfd42a319:/templates/list.tmpl diff --git a/templates/list.tmpl b/templates/list.tmpl index f820385..6e06c53 100644 --- a/templates/list.tmpl +++ b/templates/list.tmpl @@ -1,95 +1,136 @@ #from skeleton import skeleton #extends skeleton + #def title List of your VMs #end def -#def body -#if not $machines - -#else -
You have the following VMs:
-Name | -Memory | -owner | -IP | -MAC Address | -Hostname | -Status | -VNC | -Restart? | - #for $machine in $machines: -|||
$machine.name | -${machine.memory}M | -$machine.owner | -#if $machine.nics -#set $nic = $machine.nics[0] -$nic.ip | -$nic.mac_addr | -$nic.hostname | +#def createTable() +#if $cant_add_vm +- | - | + | Good! | -Console | -- - | -
Create a new VM:
- +#end if +#end def + +#def machineRow($machine) +Name | +Memory | +Owner | +Administrator | +IP | +Uptime | +VNC | ++ #for $machine in $machines: + $machineRow($machine) + #end for + |
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 + +