X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/blobdiff_plain/19c3385da7c17892b9a9389c88028897ff5ca8ad..ee4774ada4ceb3692348e1576f2099f1b3af6c2e:/templates/list.tmpl diff --git a/templates/list.tmpl b/templates/list.tmpl index 05b5c2c..50022b2 100644 --- a/templates/list.tmpl +++ b/templates/list.tmpl @@ -1,26 +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 | -Hostname | -Uptime | -VNC | -- #for $machine in $machines: + |
$machine.name | ${machine.memory}M | @@ -34,8 +71,8 @@ List of your VMs#end if | #slurp -#if $uptimes[$machine] -$uptimes[$machine]#slurp +#if $machine.uptime +$machine.uptime#slurp #else Off#slurp #end if @@ -48,60 +85,47 @@ $has_vnc[$machine] #end if | - |
Name | +Memory | +owner | +IP | +Hostname | +Uptime | +VNC | ++ #for $machine in $machines: + $machineRow($machine) #end for |
Create a new VM:
- +#end def + + +#def body +#if not $machines +You don't currently control any VMs.
#else -You are at the maximum number of VMs.
+You have the following VMs:
#end if + +