Allow comparing an evaluation with an arbitrary other evaluation

The URI parameter "compare=..." can denote either an arbitrary
evaluation ID, or the name of a jobset in the same project.  In the
latter case, the comparison is made against the latest completed
evaluation of the specified jobset.
This commit is contained in:
Eelco Dolstra
2012-04-02 20:40:59 +02:00
parent 2f9153c640
commit 69e600da89
5 changed files with 47 additions and 17 deletions

View File

@ -3,7 +3,13 @@
<h1>Jobset <tt>[% project.name %]:[% jobset.name %]</tt> evaluation [% eval.id %]</h1>
<!-- <p>Info on evaluation [% eval.id %]...<p> -->
[%- IF otherEval -%]
<p>Comparisons are relative to [% INCLUDE renderFullJobsetName
project=otherEval.jobset.project.name jobset=otherEval.jobset.name %]
evaluation <a href="[%
c.uri_for(c.controller('JobsetEval').action_for('view'),
[otherEval.id]) %]">[% otherEval.id %]</a>.</p>
[%- END -%]
[%- BLOCK renderSome -%]
[% size = builds.size; max = full ? size : 30; %]