2009-10-15 21:35:19 +00:00
|
|
|
|
[% WRAPPER layout.tt title="View ‘$view.project.name:$view.name’" %]
|
|
|
|
|
[% PROCESS common.tt %]
|
|
|
|
|
[% USE HTML %]
|
|
|
|
|
|
|
|
|
|
<h1>View <tt>[% view.project.name %]:[% view.name %]</tt></h1>
|
|
|
|
|
|
|
|
|
|
<p>
|
|
|
|
|
[<a href="[% c.uri_for('/view' project.name view.name "edit") %]">Edit</a>]
|
|
|
|
|
[<a href="[% c.uri_for('/view' project.name view.name "latest") %]">Latest</a>]
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
<p>Showing results [% (page - 1) * resultsPerPage + 1 %] - [% (page - 1) * resultsPerPage + results.size %] out of [% totalResults %].</p>
|
|
|
|
|
|
2012-04-12 18:12:07 +00:00
|
|
|
|
<table class="tablesorter table table-condensed table-striped">
|
2009-10-15 21:35:19 +00:00
|
|
|
|
<thead>
|
|
|
|
|
<tr>
|
|
|
|
|
<th></th>
|
|
|
|
|
<th>#</th>
|
|
|
|
|
<th>Name</th>
|
|
|
|
|
<th>Date</th>
|
|
|
|
|
[% FOREACH j IN jobs %]
|
2009-10-20 12:26:39 +00:00
|
|
|
|
<th class="releaseSetJobName">[% INCLUDE renderViewJobName job=j %]</th>
|
2009-10-15 21:35:19 +00:00
|
|
|
|
[% END %]
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
|
|
|
|
|
<tbody>
|
|
|
|
|
[% FOREACH result IN results %]
|
|
|
|
|
[% link = c.uri_for('/view' project.name view.name result.id) %]
|
|
|
|
|
<tr class="clickable" onclick="window.location = '[% link %]'">
|
|
|
|
|
<td>
|
|
|
|
|
[% IF result.status == 0 %]
|
2011-11-16 18:29:40 +00:00
|
|
|
|
<img src="/static/images/checkmark_16.png" />
|
2009-10-15 21:35:19 +00:00
|
|
|
|
[% ELSIF result.status == 1 %]
|
2011-11-16 18:29:40 +00:00
|
|
|
|
<img src="/static/images/error_16.png" />
|
2009-10-15 21:35:19 +00:00
|
|
|
|
[% ELSIF result.status == 2 %]
|
2011-11-16 18:29:40 +00:00
|
|
|
|
<img src="/static/images/help_16.png" />
|
2009-10-15 21:35:19 +00:00
|
|
|
|
[% END %]
|
|
|
|
|
</td>
|
|
|
|
|
<td><a href="[% link %]">[% result.id %]</a></td>
|
|
|
|
|
<td>
|
|
|
|
|
[% IF result.releasename %]
|
|
|
|
|
<tt>[% result.releasename %]</tt>
|
|
|
|
|
[% ELSE %]
|
|
|
|
|
<em>No name</em>
|
|
|
|
|
[% END %]
|
|
|
|
|
</td>
|
|
|
|
|
<td>[% INCLUDE renderDateTime timestamp=result.timestamp %]</td>
|
|
|
|
|
[% FOREACH j IN result.jobs %]
|
|
|
|
|
<td class="centered">
|
|
|
|
|
[% IF j.build %]
|
|
|
|
|
<a href="[% c.uri_for('/build' j.build.id) %]">
|
|
|
|
|
[% IF j.build.get_column('buildstatus') == 0 %]
|
2011-11-16 18:29:40 +00:00
|
|
|
|
<img src="/static/images/checkmark_16.png" />
|
2009-10-15 21:35:19 +00:00
|
|
|
|
[% ELSE %]
|
2011-11-16 18:29:40 +00:00
|
|
|
|
<img src="/static/images/error_16.png" />
|
2009-10-15 21:35:19 +00:00
|
|
|
|
[% END %]
|
|
|
|
|
</a>
|
|
|
|
|
[% END %]
|
|
|
|
|
</td>
|
|
|
|
|
[% END %]
|
2009-10-26 17:03:48 +00:00
|
|
|
|
</tr>
|
2009-10-15 21:35:19 +00:00
|
|
|
|
[% END %]
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
|
2012-04-12 18:12:07 +00:00
|
|
|
|
<ul class="pager">
|
|
|
|
|
<li class="previous"><a href="[% "$baseUri?page="; (page - 1) %]">Prev</a></li>
|
|
|
|
|
<li class="next"><a href="[% "$baseUri?page="; (page + 1) %]">Next</a></li>
|
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
<!--
|
2009-10-26 17:03:48 +00:00
|
|
|
|
<p>
|
2009-10-15 21:35:19 +00:00
|
|
|
|
[<a href="[% "$baseUri?page=1" %]">First</a>]
|
|
|
|
|
[% IF page > 1 %]
|
|
|
|
|
[<a href="[% "$baseUri?page="; (page - 1) %]">Prev</a>]
|
|
|
|
|
[% END %]
|
|
|
|
|
[% IF page * resultsPerPage < totalResults %]
|
|
|
|
|
[<a href="[% "$baseUri?page="; (page + 1) %]">Next</a>]
|
|
|
|
|
[% END %]
|
|
|
|
|
[<a href="[% "$baseUri?page="; (totalResults - 1) div resultsPerPage + 1 %]">Last</a>]
|
2009-10-26 17:03:48 +00:00
|
|
|
|
</p>
|
2012-04-12 18:12:07 +00:00
|
|
|
|
-->
|
2009-10-15 21:35:19 +00:00
|
|
|
|
|
|
|
|
|
[% END %]
|