X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/blobdiff_plain/2e270ab2393e21798dc43d99b0078a92c17a5196..refs/tags/0.1.22:/code/templates/list.mako diff --git a/code/templates/list.mako b/code/templates/list.mako index 3d0c50c..e6ed39f 100644 --- a/code/templates/list.mako +++ b/code/templates/list.mako @@ -96,21 +96,24 @@ ${self.fn.cdromList(defaults.cdrom, "$('cd_or_auto_cd').checked = true;$('autoin <%def name="machineRow(machine, dark)"> +<% + on = (machine.uptime is not None) +%> - % if machine.uptime and installing[machine]: + % if on and installing[machine]: Installing... % else: -
+ - @@ -127,7 +130,7 @@ ${self.fn.cdromList(defaults.cdrom, "$('cd_or_auto_cd').checked = true;$('autoin % endif \ -% if machine.uptime: +% if on: ${datetime.timedelta(seconds=int(machine.uptime))}\ % endif