X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/blobdiff_plain/e0e7814e58df1dc0342e3f88e7bcfad4ed483079..51436d938c9a10d3899f19fd6d6755108333a1ec:/templates/list.tmpl
diff --git a/templates/list.tmpl b/templates/list.tmpl
index 19b108e..05b5c2c 100644
--- a/templates/list.tmpl
+++ b/templates/list.tmpl
@@ -16,11 +16,10 @@ List of your VMs
Memory |
owner |
IP |
- MAC Address |
Hostname |
Uptime |
VNC |
- Restart? |
+ |
#for $machine in $machines:
$machine.name |
@@ -29,54 +28,55 @@ List of your VMs
#if $machine.nics
#set $nic = $machine.nics[0]
$nic.ip |
- $nic.mac_addr |
$nic.hostname |
#else
|
|
- |
#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
|
|
#end for
#end if
-
+#if $can_add_vm
Create a new VM:
-
+#else
+You are at the maximum number of VMs.
+#end if
#end def