This commit is contained in:
Eelco Dolstra 2009-10-26 17:03:48 +00:00
parent e25f112b82
commit 9aa70716ad
3 changed files with 7 additions and 2 deletions

View file

@ -259,7 +259,8 @@ QUERY
select select
x.id, x.finished, x.timestamp, x.project, x.jobset, x.job, x.nixname, x.id, x.finished, x.timestamp, x.project, x.jobset, x.job, x.nixname,
x.description, x.drvpath, x.outpath, x.system, x.longdescription, x.description, x.drvpath, x.outpath, x.system, x.longdescription,
x.license, x.homepage, x.maintainers, x.isCurrent, x.license, x.homepage, x.maintainers, x.isCurrent, x.nixExprInput,
x.nixExprPath,
b.id as statusChangeId, b.timestamp as statusChangeTime b.id as statusChangeId, b.timestamp as statusChangeTime
from from
(select project, jobset, job, system, max(id) as id (select project, jobset, job, system, max(id) as id

View file

@ -11,6 +11,7 @@ out of [% totalBuilds %] in order of descending timestamp.</p>
[% INCLUDE renderBuildList %] [% INCLUDE renderBuildList %]
<p>
[<a href="[% "$baseUri?page=1" %]">First</a>] [<a href="[% "$baseUri?page=1" %]">First</a>]
[% IF page > 1 %] [% IF page > 1 %]
[<a href="[% "$baseUri?page="; (page - 1) %]">Prev</a>] [<a href="[% "$baseUri?page="; (page - 1) %]">Prev</a>]
@ -19,5 +20,6 @@ out of [% totalBuilds %] in order of descending timestamp.</p>
[<a href="[% "$baseUri?page="; (page + 1) %]">Next</a>] [<a href="[% "$baseUri?page="; (page + 1) %]">Next</a>]
[% END %] [% END %]
[<a href="[% "$baseUri?page="; (totalBuilds - 1) div resultsPerPage + 1 %]">Last</a>] [<a href="[% "$baseUri?page="; (totalBuilds - 1) div resultsPerPage + 1 %]">Last</a>]
</p>
[% END %] [% END %]

View file

@ -59,11 +59,12 @@
[% END %] [% END %]
</td> </td>
[% END %] [% END %]
</tr> </tr>
[% END %] [% END %]
</tbody> </tbody>
</table> </table>
<p>
[<a href="[% "$baseUri?page=1" %]">First</a>] [<a href="[% "$baseUri?page=1" %]">First</a>]
[% IF page > 1 %] [% IF page > 1 %]
[<a href="[% "$baseUri?page="; (page - 1) %]">Prev</a>] [<a href="[% "$baseUri?page="; (page - 1) %]">Prev</a>]
@ -72,5 +73,6 @@
[<a href="[% "$baseUri?page="; (page + 1) %]">Next</a>] [<a href="[% "$baseUri?page="; (page + 1) %]">Next</a>]
[% END %] [% END %]
[<a href="[% "$baseUri?page="; (totalResults - 1) div resultsPerPage + 1 %]">Last</a>] [<a href="[% "$baseUri?page="; (totalResults - 1) div resultsPerPage + 1 %]">Last</a>]
</p>
[% END %] [% END %]