hydra/src/root/machine-status.tt

44 lines
1.5 KiB
Plaintext
Raw Normal View History

2013-02-20 14:54:33 +00:00
[% WRAPPER layout.tt title="Machine status" %]
[% PROCESS common.tt %]
<table class="table table-condensed table-striped">
2013-02-20 15:47:57 +00:00
[% FOREACH m IN machines %]
[% name = m.key ? m.key.match('@(.*)').0 : "localhost" %]
<thead>
2013-02-20 15:47:57 +00:00
<tr>
<th colspan="5">
<tt>[% name %]</tt>
[% IF m.value.systemTypes %]
([% comma=0; FOREACH system IN m.value.systemTypes %][% IF comma; %], [% ELSE; comma = 1; END %]<tt>[% system %]</tt>[% END %])
[% END %]
2013-02-20 15:47:57 +00:00
</th>
</tr>
</thead>
<tbody>
2013-02-20 15:47:57 +00:00
[% idle = 1 %]
[% FOREACH step IN steps %]
[% name2 = step.machine ? step.machine.match('@(.*)').0 : "localhost" %]
[% IF name == name2 %]
2013-02-20 15:47:57 +00:00
[% idle = 0 %]
<tr>
2013-04-23 13:23:08 +00:00
<td><tt>[% INCLUDE renderFullJobNameOfBuild build=step.build %]</tt></td>
2013-02-20 15:47:57 +00:00
<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 style="width: 10em">[% INCLUDE renderDuration duration = curTime - step.starttime %] </td>
2013-02-20 15:47:57 +00:00
</tr>
[% END %]
2013-02-20 15:47:57 +00:00
[% END %]
[% IF idle == 1 %]
[% IF m.value.idle %]
<tr><td colspan="5">Idle for [% INCLUDE renderDuration duration = curTime - m.value.idle %]</td></tr>
[% ELSE %]
<tr><td colspan="5">Never used</td></tr>
[% END %]
2013-02-20 15:47:57 +00:00
[% END %]
</tbody>
2013-02-20 15:47:57 +00:00
[% END %]
</table>
[% END %]