* Added a status page that shows all the currently executing build steps.
* Store the system type in the BuildSteps table. * Don't query the queue size when serving static pages. This prevents two unnecessary database queries per request.
This commit is contained in:
@ -53,10 +53,15 @@ tr.clickable:hover {
|
||||
background-color: #E6EEFF;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
td.centered {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
td.right {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
|
||||
.layoutTable td, .layoutTable th {
|
||||
border-style: none;
|
||||
|
24
src/root/status.tt
Normal file
24
src/root/status.tt
Normal file
@ -0,0 +1,24 @@
|
||||
[% WRAPPER layout.tt title="Hydra status" %]
|
||||
[% PROCESS common.tt %]
|
||||
|
||||
<h1>Hydra Status</h1>
|
||||
|
||||
<table class="tablesorter">
|
||||
<thead>
|
||||
<tr><th>Machine</th><th>Type</th><th>Build</th><th>Step</th><th>What</th><th>Since</th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
[% FOREACH step IN steps %]
|
||||
<tr>
|
||||
<td><tt>[% IF step.machine; step.machine.match('@(.*)').0; ELSE; 'localhost'; END %]</tt></td>
|
||||
<td><tt>[% step.system %]</tt></td>
|
||||
<td><a href="[% c.uri_for('/build' step.build.id) %]">[% step.build.id %]</a></td>
|
||||
<td><a href="[% c.uri_for('/build' step.build.id 'nixlog' step.stepnr) %]">[% step.stepnr %]</a></td>
|
||||
<td><tt>[% step.outpath.match('-(.*)').0 %]</tt></td>
|
||||
<td class='right'>[% INCLUDE renderDuration duration = curTime - step.starttime %] </td>
|
||||
</tr>
|
||||
[% END %]
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
[% END %]
|
Reference in New Issue
Block a user