2012-04-02 14:45:05 +00:00
|
|
|
|
[% WRAPPER layout.tt title="Jobset ‘$project.name:$jobset.name’ Evaluations" %]
|
2012-04-02 14:11:22 +00:00
|
|
|
|
[% PROCESS common.tt %]
|
|
|
|
|
|
|
|
|
|
<h1>Evaluations of Jobset <tt>[% INCLUDE renderLink
|
|
|
|
|
uri = c.uri_for(c.controller('Project').action_for('view'), [project.name])
|
|
|
|
|
title = project.name %]:[% jobset.name %]</tt></h1>
|
2012-04-02 18:40:59 +00:00
|
|
|
|
|
|
|
|
|
[% nrShown = evals.size > resultsPerPage ? resultsPerPage : evals.size %]
|
2012-04-02 14:11:22 +00:00
|
|
|
|
|
|
|
|
|
<p>Showing evaluations [% (page - 1) * resultsPerPage + 1 %] - [%
|
2012-04-02 18:40:59 +00:00
|
|
|
|
(page - 1) * resultsPerPage + nrShown %] out of [% total %].</p>
|
2012-04-02 14:11:22 +00:00
|
|
|
|
|
|
|
|
|
[% INCLUDE renderPager %]
|
|
|
|
|
|
2012-04-12 18:12:07 +00:00
|
|
|
|
<table class="tablesorter table table-condensed table-striped">
|
2012-04-02 14:11:22 +00:00
|
|
|
|
<thead>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>#</th>
|
|
|
|
|
<th>Date</th>
|
|
|
|
|
<th colspan='2'>Success</th>
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
2012-04-02 18:40:59 +00:00
|
|
|
|
[% last = nrShown - 1; FOREACH n IN [0..last]; eval = evals.$n; m = n + 1; next = evals.$m; %]
|
2012-04-02 14:11:22 +00:00
|
|
|
|
<tr>
|
|
|
|
|
<td><a href="[% c.uri_for(c.controller('JobsetEval').action_for('view'), [eval.id]) %]">[% eval.id %]</a> </td>
|
|
|
|
|
<td>[% INCLUDE renderDateTime timestamp = eval.timestamp %] </td>
|
|
|
|
|
<td align='right'>
|
2012-04-12 18:12:07 +00:00
|
|
|
|
<span class="label label-success">[% eval.get_column('nrSucceeded') %]</span>
|
|
|
|
|
<span class="label label-important">[% eval.get_column('nrBuilds') - eval.get_column('nrSucceeded') - eval.get_column('nrScheduled') %]</span>
|
2012-04-02 14:11:22 +00:00
|
|
|
|
[% IF eval.get_column('nrScheduled') > 0 %]
|
2012-04-12 18:12:07 +00:00
|
|
|
|
<span class="label">[% eval.get_column('nrScheduled') %]</span>
|
2012-04-02 14:11:22 +00:00
|
|
|
|
[% END %]
|
|
|
|
|
</td>
|
|
|
|
|
<td align='right'>
|
|
|
|
|
[% diff = eval.get_column('nrSucceeded') - next.get_column('nrSucceeded');
|
|
|
|
|
IF diff > 0 %]
|
2012-04-12 18:12:07 +00:00
|
|
|
|
<span class='label label-success'><strong>+[% diff %]</strong></span>
|
2012-04-02 14:11:22 +00:00
|
|
|
|
[% ELSIF diff < 0 && eval.get_column('nrScheduled') == 0 %]
|
2012-04-12 18:12:07 +00:00
|
|
|
|
<span class='label label-important'><strong>[% diff %]</strong></span>
|
2012-04-02 14:11:22 +00:00
|
|
|
|
[% END %]
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
[% END %]
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
|
|
[% INCLUDE renderPager %]
|
|
|
|
|
|
|
|
|
|
[% END %]
|