From 089a9c836f45d1ebefc10e7e9c4efa59a330c462 Mon Sep 17 00:00:00 2001 From: Rob Vermaas Date: Thu, 12 Apr 2012 21:42:21 +0200 Subject: [PATCH] Machine status page now looks much better and more consistent with rest of Hydra --- src/root/admin.tt | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/src/root/admin.tt b/src/root/admin.tt index f022251a..d2fab0fa 100644 --- a/src/root/admin.tt +++ b/src/root/admin.tt @@ -1,20 +1,18 @@ [% WRAPPER layout.tt title="Admin" %] [% PROCESS common.tt %] -

Admin

- -

Status

+

Machine status

+ [% FOREACH m IN machines %] -
- @@ -37,9 +35,9 @@ [% END %] +[% END %]
+ [% IF m.enabled == 1 %] - [% INCLUDE maybeLink uri = c.uri_for('/admin/machine' m.hostname 'disable' ) content='-' %] + Running [% ELSE %] - [% INCLUDE maybeLink uri = c.uri_for('/admin/machine' m.hostname 'enable' ) content='+' %] - [% END %] + Stopped + [% END %] [% m.hostname %] [% FOREACH ms IN m.buildmachinesystemtypes %] [% ms.system %][% END %]
Idle since [% INCLUDE renderDuration duration = curTime - m.get_column('idle') %]
-[% END %] [% END %]