X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/blobdiff_plain/7b924b8f4ec3c62b70a012f7d417beb230db8965..14f651c500c554436376dd5d10450703478669b6:/code/templates/list.tmpl
diff --git a/code/templates/list.tmpl b/code/templates/list.tmpl
index 7d484f3..e9200dd 100644
--- a/code/templates/list.tmpl
+++ b/code/templates/list.tmpl
@@ -1,5 +1,6 @@
#from skeleton import skeleton
#extends skeleton
+#import datetime
#def title
@@ -24,12 +25,19 @@ VM List
#end filter
Name |
- |
+ .xvm.mit.edu |
#filter None
$errorRow('name', $err)
#end filter
+ Description |
+ |
+
+#filter None
+$errorRow('description', $err)
+#end filter
+
Memory |
MiB ($max_memory max) |
@@ -38,7 +46,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 +54,7 @@ $errorRow('disk', $err)
HVM/ParaVM#slurp
#filter None
-$helppopup('hvm_paravm')#slurp
+$helppopup('HVM/ParaVM')#slurp
#end filter
|
@@ -58,10 +66,13 @@ $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('Autoinstall')#slurp
#end filter
|
@@ -97,6 +108,20 @@ $errorRow('cdrom', $err)
#def machineRow($machine)
|
+
+
+ |
$machine.name |
${machine.memory}M |
$machine.owner |
@@ -109,7 +134,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 +146,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,6 +178,13 @@ $helppopup('administrator')#slurp
#end filter
#end for
+
+
#end def