forked from lix-project/hydra
Machine status page now looks much better and more consistent with rest of Hydra
This commit is contained in:
parent
6853d0398a
commit
089a9c836f
1 changed files with 7 additions and 9 deletions
|
@ -1,19 +1,17 @@
|
||||||
[% WRAPPER layout.tt title="Admin" %]
|
[% WRAPPER layout.tt title="Admin" %]
|
||||||
[% PROCESS common.tt %]
|
[% PROCESS common.tt %]
|
||||||
|
|
||||||
<h1>Admin</h1>
|
<h2>Machine status</h2>
|
||||||
|
|
||||||
<h2>Status</h2>
|
|
||||||
|
|
||||||
|
<table class="table table-condensed table-striped">
|
||||||
[% FOREACH m IN machines %]
|
[% FOREACH m IN machines %]
|
||||||
<table style="width: 40em;">
|
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th colspan="5" style="background-color: [% IF m.enabled == 1 %]lime[% ELSE %]red[% END %];">
|
<th colspan="5">
|
||||||
[% IF m.enabled == 1 %]
|
[% IF m.enabled == 1 %]
|
||||||
[% INCLUDE maybeLink uri = c.uri_for('/admin/machine' m.hostname 'disable' ) content='-' %]
|
<a class="btn btn-success btn-mini" href="[% c.uri_for('/admin/machine' m.hostname 'disable' ) %]">Running</a>
|
||||||
[% ELSE %]
|
[% ELSE %]
|
||||||
[% INCLUDE maybeLink uri = c.uri_for('/admin/machine' m.hostname 'enable' ) content='+' %]
|
<a class="btn btn-danger btn-mini" href="[% c.uri_for('/admin/machine' m.hostname 'enable' ) %]">Stopped</a>
|
||||||
[% END %]
|
[% END %]
|
||||||
[% m.hostname %] <tt>[% FOREACH ms IN m.buildmachinesystemtypes %] [% ms.system %][% END %]</tt>
|
[% m.hostname %] <tt>[% FOREACH ms IN m.buildmachinesystemtypes %] [% ms.system %][% END %]</tt>
|
||||||
</th>
|
</th>
|
||||||
|
@ -37,9 +35,9 @@
|
||||||
<tr><td colspan="5">Idle since [% INCLUDE renderDuration duration = curTime - m.get_column('idle') %]</td></tr>
|
<tr><td colspan="5">Idle since [% INCLUDE renderDuration duration = curTime - m.get_column('idle') %]</td></tr>
|
||||||
[% END %]
|
[% END %]
|
||||||
</tbody>
|
</tbody>
|
||||||
|
[% END %]
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
[% END %]
|
|
||||||
|
|
||||||
|
|
||||||
[% END %]
|
[% END %]
|
||||||
|
|
Loading…
Reference in a new issue