2013-02-20 14:54:33 +00:00
[% WRAPPER layout.tt title="Machine status" %]
2010-04-27 13:29:08 +00:00
[% PROCESS common.tt %]
2012-04-12 19:42:21 +00:00
<table class="table table-condensed table-striped">
2013-02-20 15:47:57 +00:00
[% FOREACH m IN machines %]
2010-10-13 12:32:57 +00:00
<thead>
2013-02-20 15:47:57 +00:00
<tr>
<th colspan="5">
[% IF m.enabled == 1 %]
<a class="btn btn-success btn-mini" href="[% c.uri_for('/admin/machine' m.hostname 'disable' ) %]">Running</a>
[% ELSE %]
<a class="btn btn-danger btn-mini" href="[% c.uri_for('/admin/machine' m.hostname 'enable' ) %]">Stopped</a>
[% END %] <tt>[% m.hostname %]</tt> (<tt>[% comma=0; FOREACH ms IN m.buildmachinesystemtypes %][% IF comma; %], [% ELSE; comma = 1; END; ms.system; END %])</tt>
</th>
</tr>
2010-10-13 12:32:57 +00:00
</thead>
<tbody>
2013-02-20 15:47:57 +00:00
[% idle = 1 %]
[% FOREACH step IN steps %]
2010-10-13 12:32:57 +00:00
[% IF step.machine.match('@(.*)').0 == m.hostname %]
2013-02-20 15:47:57 +00:00
[% idle = 0 %]
<tr>
<td><tt>[% INCLUDE renderFullJobName project = step.build.project.name jobset = step.build.jobset.name job = step.build.job.name %]</tt></td>
<td><tt>[% step.system %]</tt></td>
<td><a href="[% c.uri_for('/build' step.build.id) %]">[% step.build.id %]</a></td>
<td><tt>[% step.drvpath.match('-(.*)').0 %]</tt></td>
<td class='right'>[% INCLUDE renderDuration duration = curTime - step.starttime %] </td>
</tr>
2010-10-13 12:32:57 +00:00
[% END %]
2013-02-20 15:47:57 +00:00
[% END %]
[% IF idle == 1 %]
<tr><td colspan="5">Idle since [% INCLUDE renderDuration duration = curTime - m.get_column('idle') %]</td></tr>
[% END %]
2010-10-13 12:32:57 +00:00
</tbody>
2013-02-20 15:47:57 +00:00
[% END %]
2010-10-13 12:32:57 +00:00
</table>
2010-04-27 13:29:08 +00:00
[% END %]