Add a button to compare a jobset eval against other jobsets
So now "?compare=<jobset name>" is no longer a hidden feature! P.S. Encountered this wonderful TemplateToolkit brainfuck again: if you want to get the number of rows in (say) project.jobsets, you can't say "project.jobsets.size". That will *usually* give the right result, except that if there is only one row in project.jobsets, it will evaluate to 3. Instead you have to use "project.jobsets_rs.count".
This commit is contained in:
parent
fe7e0ff1f4
commit
5b6b9d37f0
|
@ -1,6 +1,19 @@
|
|||
[% WRAPPER layout.tt title="Evaluation $eval.id of jobset $project.name:$jobset.name " %]
|
||||
[% PROCESS common.tt %]
|
||||
|
||||
<div class="btn-group pull-right">
|
||||
<a class="btn btn-primary dropdown-toggle" data-toggle="dropdown" href="#"><i class="icon-white icon-eye-open"></i> Compare to...</a>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="?">Preceding evaluation in the same jobset</tt></a></li>
|
||||
[% IF project.jobsets_rs.count > 1 %]
|
||||
<li class="divider"></li>
|
||||
[% FOREACH j IN project.jobsets; IF j.name != jobset.name %]
|
||||
<li><a href="?compare=[% j.name %]">Jobset <tt>[% project.name %]:[% j.name %]</tt></a></li>
|
||||
[% END; END %]
|
||||
[% END %]
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
[% IF otherEval %]
|
||||
<p>Comparisons are relative to [% INCLUDE renderFullJobsetName
|
||||
project=otherEval.jobset.project.name jobset=otherEval.jobset.name %] evaluation <a href="[%
|
||||
|
|
Loading…
Reference in a new issue