* Build the /build stuff in a separate controller.

This commit is contained in:
Eelco Dolstra
2009-02-25 12:03:13 +00:00
parent 16acb2754c
commit cb342ed0dd
5 changed files with 149 additions and 128 deletions

View File

@ -121,7 +121,7 @@
<tr>
<th>Logfile:</th>
<td>
<a href="[% c.uri_for('build' build.id 'log') %]"><strong>Available</strong></a>
<a href="[% c.uri_for('/build' build.id 'log') %]"><strong>Available</strong></a>
</td>
</tr>
[% END %]
@ -178,7 +178,7 @@
</thead>
<tbody>
[% FOREACH step IN build.buildsteps -%]
[% log = c.uri_for('build' build.id 'nixlog' step.stepnr) %]
[% log = c.uri_for('/build' build.id 'nixlog' step.stepnr) %]
<tr class="[% IF step.logfile %]clickable[% END %]"
[% IF step.logfile %] onclick="window.location = '[% log %]'" [% END %]>
<td>[% step.stepnr %]</td>

View File

@ -6,14 +6,14 @@
[% FOREACH product IN build.buildproducts -%]
[% uri = c.uri_for('build' build.id 'download' product.productnr product.name) %]
[% uri = c.uri_for('/build' build.id 'download' product.productnr product.name) %]
[% SWITCH product.type %]
[% CASE "nix-build" %]
<li class="product">
[% uri = c.uri_for('nixpkg' build.id) %]
[% uri = c.uri_for('/nixpkg' build.id) %]
<a href="[% uri %]">
<img src="/static/images/nix-build.png" alt="Source" />
One-click install of Nix package <tt>[% build.nixname %]</tt>