X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/blobdiff_plain/867613f209f2f414afd261258c73b6adf4bdd905..ab726e449c9cde9f3a61e48709d8561b3077e251:/templates/list.tmpl diff --git a/templates/list.tmpl b/templates/list.tmpl index f820385..50022b2 100644 --- a/templates/list.tmpl +++ b/templates/list.tmpl @@ -1,27 +1,63 @@ #from skeleton import skeleton #extends skeleton + #def title List of your VMs #end def -#def body -#if not $machines - +#def createTable() +#if $cant_add_vm +
$cant_add_vm
#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 | @@ -29,67 +65,67 @@ List of your VMs #if $machine.nics #set $nic = $machine.nics[0]$nic.ip | -$nic.mac_addr | $nic.hostname | #else- | #end if - | Good! | -Console | +#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 + | - |
Name | +Memory | +owner | +IP | +Hostname | +Uptime | +VNC | ++ #for $machine in $machines: + $machineRow($machine) #end for |
Create a new VM:
- +#def body +#if not $machines +You don't currently control any VMs.
+#else +You have the following VMs:
+#end if + +