X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/blobdiff_plain/b812ecb815635726dca92b6c3725ac0a4bb86ab6..41c2aef6270583d1bd47c245f27cf87487857b5d:/code/templates/list.tmpl?ds=sidebyside
diff --git a/code/templates/list.tmpl b/code/templates/list.tmpl
index 71f36ea..2242c2f 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
@@ -19,36 +20,78 @@ VM List
@@ -78,14 +123,16 @@ $errorRow('cdrom', $err)
#end if
#slurp
#if $machine.uptime
-$machine.uptime#slurp
+${datetime.timedelta(seconds=int(machine.uptime))}#slurp
#end if
|
#slurp
#if $has_vnc[$machine] == True
Console#slurp
#else if $has_vnc[$machine] != 'Off'
+#filter None
$has_vnc[$machine]
+#end filter
#end if
|
@@ -106,15 +153,25 @@ $has_vnc[$machine]
|
Name |
Memory |
- Owner$helppopup('owner') |
- Administrator$helppopup('administrator') |
+ Owner#slurp
+#filter None
+$helppopup('Owner')#slurp
+#end filter
+ |
+ Administrator#slurp
+#filter None
+$helppopup('Administrator')#slurp
+#end filter
+ |
IP |
Uptime |
VNC |
|
#for $machine in $machines:
+ #filter None
$machineRow($machine)
+ #end filter
#end for
#end def
@@ -127,7 +184,11 @@ $has_vnc[$machine]
#end if
refresh
+ #filter None
$machineList($machines)
+ #end filter
+#filter None
$createForm()
+#end filter
#end def