forked from lix-project/hydra
Also show number of evaluations of which a build is a part
This commit is contained in:
parent
edbe531ccc
commit
c6fe9f00bf
|
@ -92,6 +92,7 @@ sub view_build : Chained('build') PathPart('') Args(0) {
|
|||
}
|
||||
|
||||
# Get the first eval of which this build was a part.
|
||||
($c->stash->{nrEvals}) = $c->stash->{build}->jobsetevals->search({ hasnewbuilds => 1 })->count;
|
||||
($c->stash->{eval}) = $c->stash->{build}->jobsetevals->search(
|
||||
{ hasnewbuilds => 1},
|
||||
{ limit => 1, order_by => ["id"] });
|
||||
|
|
|
@ -97,12 +97,6 @@
|
|||
<th>System:</th>
|
||||
<td><tt>[% build.system %]</tt></td>
|
||||
</tr>
|
||||
[% IF eval %]
|
||||
<tr>
|
||||
<th>Part of:</th>
|
||||
<td><a href="[% c.uri_for(c.controller('JobsetEval').action_for('view'), [eval.id]) %]">evaluation [% eval.id %]</a></td>
|
||||
</tr>
|
||||
[% END %]
|
||||
[% IF build.releasename %]
|
||||
<tr>
|
||||
<th>Release name:</th>
|
||||
|
@ -114,6 +108,15 @@
|
|||
<td><tt>[% build.nixname %]</tt></td>
|
||||
</tr>
|
||||
[% END %]
|
||||
[% IF eval %]
|
||||
<tr>
|
||||
<th>Part of:</th>
|
||||
<td>
|
||||
<a href="[% c.uri_for(c.controller('JobsetEval').action_for('view'), [eval.id]) %]">evaluation [% eval.id %]</a>
|
||||
[% IF nrEvals > 1 +%] (and [% nrEvals - 1 %] others)[% END %]
|
||||
</td>
|
||||
</tr>
|
||||
[% END %]
|
||||
[% IF build.iscachedbuild %]
|
||||
<tr>
|
||||
<th>Cached from:</th>
|
||||
|
|
Loading…
Reference in a new issue