X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/blobdiff_plain/7b924b8f4ec3c62b70a012f7d417beb230db8965..880cccfcec2b9d02c9f1021aff834ca7b2af0b39:/code/templates/list.tmpl?ds=inline
diff --git a/code/templates/list.tmpl b/code/templates/list.tmpl
index 7d484f3..cf59937 100644
--- a/code/templates/list.tmpl
+++ b/code/templates/list.tmpl
@@ -1,5 +1,7 @@
#from skeleton import skeleton
+#from invirt.config import structs as config
#extends skeleton
+#import datetime
#def title
@@ -24,12 +26,19 @@ VM List
#end filter
Name
-
+ .${config.dns.domains[0]}
#filter None
$errorRow('name', $err)
#end filter
+ Description
+
+
+#filter None
+$errorRow('description', $err)
+#end filter
+
Memory
MiB ($max_memory max)
@@ -38,7 +47,7 @@ $errorRow('memory', $err)
#end filter
Disk
- GiB (${"%0.1f" % ($max_disk-0.05)} max)
+ GiB (${"%0.1f" % ($max_disk-0.05)} max)
#filter None
$errorRow('disk', $err)
@@ -46,7 +55,7 @@ $errorRow('disk', $err)
HVM/ParaVM#slurp
#filter None
-$helppopup('hvm_paravm')#slurp
+$helppopup('HVM/ParaVM')#slurp
#end filter
@@ -58,24 +67,29 @@ $vmTypeList($defaults.type)
#filter None
$errorRow('vmtype', $err)
#end filter
+#filter None
+$errorRow('autoinstall', $err)
+#end filter
Autoinstall#slurp
#filter None
-$helppopup('autoinstall')#slurp
+$helppopup('Autoinstalls')#slurp
#end filter
-
+
#filter None
-$autoList($defaults.cdrom, "document.getElementById('cd_or_auto_auto').checked = true;document.getElementById('cdromlist').value = ''")
- (experimental; 1-2 minutes, and you have a machine; root pw is 'password'.)
+$autoList($defaults.cdrom, "$('cd_or_auto_auto').checked = true;$('cdromlist').value = '';$('vmtype-linux').checked = true")
+ (experimental; 2-3 minutes, and you have a machine with empty root password.)
#end filter
Boot CD
-
+
#filter None
-$cdromList($defaults.cdrom, "document.getElementById('cd_or_auto_cd').checked = true;document.getElementById('autoinstalllist').value = ''")
+$cdromList($defaults.cdrom, "$('cd_or_auto_cd').checked = true;$('autoinstalllist').value = '';$('vmtype-linux-hvm').checked = true")
#end filter
@@ -90,13 +104,29 @@ $errorRow('cdrom', $err)
$errorRow('owner', $err)
#end filter
-
+
+ Windows notes: #slurp
+#filter None
+$helppopup('Windows')#slurp
+#end filter
#end if
#end def
#def machineRow($machine)
+
+
+
$machine.name
${machine.memory}M
$machine.owner
@@ -109,7 +139,7 @@ $errorRow('cdrom', $err)
#end if
#slurp
#if $machine.uptime
-$machine.uptime#slurp
+${datetime.timedelta(seconds=int(machine.uptime))}#slurp
#end if
#slurp
@@ -121,38 +151,31 @@ $has_vnc[$machine]
#end filter
#end if
-
-
-
+
+
+ $machine.description
#end def
#def machineList($machines)
-
+
+
Name
Memory
Owner#slurp
#filter None
-$helppopup('owner')#slurp
+$helppopup('Owner')#slurp
#end filter
Administrator#slurp
#filter None
-$helppopup('administrator')#slurp
+$helppopup('Administrator')#slurp
#end filter
IP
Uptime
VNC
-
#for $machine in $machines:
#filter None
@@ -160,11 +183,18 @@ $helppopup('administrator')#slurp
#end filter
#end for
+
+
#end def
#def body
-SIPB Virtual Servers is an alpha service . What does this mean?
+What is XVM?
#if not $machines
You don't currently control any VMs.
#end if