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">
|
2010-10-13 12:32:57 +00:00
|
|
|
[% FOREACH m IN machines %]
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2012-04-12 19:42:21 +00:00
|
|
|
<th colspan="5">
|
2010-10-13 12:32:57 +00:00
|
|
|
[% IF m.enabled == 1 %]
|
2012-04-12 19:42:21 +00:00
|
|
|
<a class="btn btn-success btn-mini" href="[% c.uri_for('/admin/machine' m.hostname 'disable' ) %]">Running</a>
|
2010-10-13 12:32:57 +00:00
|
|
|
[% ELSE %]
|
2012-04-12 19:42:21 +00:00
|
|
|
<a class="btn btn-danger btn-mini" href="[% c.uri_for('/admin/machine' m.hostname 'enable' ) %]">Stopped</a>
|
|
|
|
[% END %]
|
2010-10-13 12:32:57 +00:00
|
|
|
[% m.hostname %] <tt>[% FOREACH ms IN m.buildmachinesystemtypes %] [% ms.system %][% END %]</tt>
|
|
|
|
</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
[% idle = 1 %]
|
|
|
|
[% FOREACH step IN steps %]
|
|
|
|
[% IF step.machine.match('@(.*)').0 == m.hostname %]
|
|
|
|
[% 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>
|
2013-02-13 16:49:28 +00:00
|
|
|
<td><tt>[% step.drvpath.match('-(.*)').0 %]</tt></td>
|
2010-10-13 12:32:57 +00:00
|
|
|
<td class='right'>[% INCLUDE renderDuration duration = curTime - step.starttime %] </td>
|
|
|
|
</tr>
|
|
|
|
[% END %]
|
|
|
|
[% END %]
|
|
|
|
[% IF idle == 1 %]
|
|
|
|
<tr><td colspan="5">Idle since [% INCLUDE renderDuration duration = curTime - m.get_column('idle') %]</td></tr>
|
|
|
|
[% END %]
|
|
|
|
</tbody>
|
2012-04-12 19:42:21 +00:00
|
|
|
[% END %]
|
2010-10-13 12:32:57 +00:00
|
|
|
</table>
|
|
|
|
|
|
|
|
|
2010-04-27 13:29:08 +00:00
|
|
|
|
|
|
|
[% END %]
|