This commit is contained in:
Eelco Dolstra 2013-10-03 15:14:55 +02:00
parent 97c76f34df
commit acdeaa1d80

View file

@ -37,34 +37,34 @@
[% aggs = aggregates.keys.nsort.reverse %] [% aggs = aggregates.keys.nsort.reverse %]
<table class="table table-striped table-condensed table-header-rotated"> <table class="table table-striped table-condensed table-header-rotated">
<thead> <thead>
<tr> <tr>
<th>Job</th> <th>Job</th>
[% FOREACH agg IN aggs %] [% FOREACH agg IN aggs %]
<th class="rotate-45"> <th class="rotate-45">
[% agg_ = aggregates.$agg %] [% agg_ = aggregates.$agg %]
<div><span class="[% agg_.build.finished == 0 ? "text-info" : (agg_.build.buildstatus == 0 ? "text-success" : "text-warning") %] override-link"> <div><span class="[% agg_.build.finished == 0 ? "text-info" : (agg_.build.buildstatus == 0 ? "text-success" : "text-warning") %] override-link">
<a href="[% c.uri_for('/build' agg) %]">[% agg %]</a> <a href="[% c.uri_for('/build' agg) %]">[% agg %]</a>
</span></div></th> </span></div></th>
[% END %] [% END %]
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
[% FOREACH j IN constituentJobs %] [% FOREACH j IN constituentJobs %]
<tr> <tr>
<th style="width: 1em;">[% INCLUDE renderJobName project=project.name jobset=jobset.name job=j %]</th> <th style="width: 1em;">[% INCLUDE renderJobName project=project.name jobset=jobset.name job=j %]</th>
[% FOREACH agg IN aggs %] [% FOREACH agg IN aggs %]
<td> <td>
[% r = aggregates.$agg.constituents.$j; IF r.id %] [% r = aggregates.$agg.constituents.$j; IF r.id %]
<a href="[% c.uri_for('/build' r.id) %]"> <a href="[% c.uri_for('/build' r.id) %]">
[% INCLUDE renderBuildStatusIcon size=16 build=r %] [% INCLUDE renderBuildStatusIcon size=16 build=r %]
</a> </a>
[% END %] [% END %]
</td> </td>
[% END %] [% END %]
</tr> </tr>
[% END %] [% END %]
</tbody> </tbody>
</table> </table>
</div> </div>