X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/blobdiff_plain/eb9adb539fb47ab4b5c4e859cf119b554b9116cb..59b8dc4f1f1a59dc8318ca65569101df73a6ef13:/code/templates/list.tmpl
diff --git a/code/templates/list.tmpl b/code/templates/list.tmpl
index b6e9e33..dc4ad47 100644
--- a/code/templates/list.tmpl
+++ b/code/templates/list.tmpl
@@ -3,14 +3,14 @@
#def title
-List of your VMs
+VM List
#end def
-#def createTable()
+#def createForm()
#if $cant_add_vm
$cant_add_vm
#else
-Create a new VM:
+Create a new VM
#if $err
We had a problem with your request:
#else if $varExists('new_machine')
@@ -53,8 +53,9 @@ $errorRow('vmtype', $err)
$errorRow('cdrom', $err)
Clone image? |
-
- (experimental; 1-2 minutes, and you have an etch machine; root pw is 'password'.) |
+
+ (experimental; 1-2 minutes, and you have an etch machine; root pw is 'password'.)
+ |
$errorRow('cdrom', $err)
@@ -83,14 +84,12 @@ $errorRow('cdrom', $err)
#slurp
#if $machine.uptime
$machine.uptime#slurp
-#else
-Off#slurp
#end if
|
#slurp
#if $has_vnc[$machine] == True
Console#slurp
-#else
+#else if $has_vnc[$machine] != 'Off'
$has_vnc[$machine]
#end if
|
@@ -110,14 +109,15 @@ $has_vnc[$machine]
#def machineList($machines)
- Name |
- Memory |
- Owner |
- Administrator |
- IP |
- Uptime |
- VNC |
- |
+ Name |
+ Memory |
+ Owner |
+ Administrator |
+ IP |
+ Uptime |
+ VNC |
+ |
+
#for $machine in $machines:
$machineRow($machine)
#end for
@@ -126,17 +126,13 @@ $has_vnc[$machine]
#def body
-Note: sipb-xen is a very alpha service. What does this mean?
+SIPB Virtual Servers is an 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()
-
+$createForm()
#end def