hydra/src/root/queue-summary.tt
Eelco Dolstra 49a4639377 Add a more concise queue page
The old page didn't scale very well if you have 150K builds in the
queue, in fact it tended to make browsers hang. The new one just
shows, for each jobset, the number of queued builds. The actual builds
can be seen by going to the corresponding jobset page and looking at
the evals.
2016-03-08 19:44:51 +01:00

34 lines
817 B
Plaintext

[% WRAPPER layout.tt title="Queue summary" %]
[% PROCESS common.tt %]
[% IF queued.size == 0 %]
<div class="alert alert-info">There are no pending builds.</div>
[% ELSE %]
<table class="table table-striped table-condensed clickable-rows">
<thead>
<tr>
<th>Jobset</th>
<th># Queued</th>
<th>Oldest queued</th>
<th>Newest queued</th>
</tr>
</thead>
<tdata>
[% FOREACH j IN queued %]
<tr>
<td>[% INCLUDE renderFullJobsetName project=j.project jobset=j.jobset %]</td>
<td>[% HTML.escape(j.queued) %]</td>
<td>[% INCLUDE renderRelativeDate timestamp=j.oldest %]</td>
<td>[% INCLUDE renderRelativeDate timestamp=j.newest %]</td>
</tr>
[% END %]
</tdata>
</table>
[% END %]
[% END %]