2008-11-27 20:33:17 +00:00
|
|
|
|
[% USE mibs=format("%.2f") %]
|
|
|
|
|
|
2008-11-27 18:27:19 +00:00
|
|
|
|
[% BLOCK renderProductList -%]
|
|
|
|
|
|
2009-04-08 09:37:05 +00:00
|
|
|
|
[% # Work around a strange bug: build.buildproducts.size returns 3 when the actual size is 1.
|
|
|
|
|
nrProducts = 0; FOREACH product IN build.buildproducts; nrProducts = nrProducts + 1; END
|
|
|
|
|
%]
|
|
|
|
|
|
2010-02-24 15:06:20 +00:00
|
|
|
|
<table class="productList layoutTable">
|
2008-11-27 18:27:19 +00:00
|
|
|
|
|
|
|
|
|
[% FOREACH product IN build.buildproducts -%]
|
2009-02-25 10:52:41 +00:00
|
|
|
|
|
2009-03-06 13:34:53 +00:00
|
|
|
|
[% uri = "${c.uri_for('/build' build.id 'download' product.productnr)}"
|
|
|
|
|
_ (product.name ? "/" _ product.name : "")
|
|
|
|
|
_ (product.defaultpath ? "/" _ product.defaultpath : "") %]
|
2009-02-25 10:52:41 +00:00
|
|
|
|
|
2009-03-18 17:40:12 +00:00
|
|
|
|
[% contents = c.uri_for('/build' build.id 'contents' product.productnr) %]
|
|
|
|
|
|
2008-11-27 18:27:19 +00:00
|
|
|
|
[% SWITCH product.type %]
|
|
|
|
|
|
|
|
|
|
[% CASE "nix-build" %]
|
2012-03-05 20:52:47 +00:00
|
|
|
|
[% IF build.buildstatus == 6 %]
|
2011-02-02 12:16:57 +00:00
|
|
|
|
[% filename = "${build.nixname}.closure.gz" %]
|
|
|
|
|
[% uri = c.uri_for('/build' build.id 'nix' 'closure' filename ) %]
|
2011-01-04 16:08:19 +00:00
|
|
|
|
<tr class="product">
|
|
|
|
|
<td>
|
|
|
|
|
<a href="[% contents %]">
|
|
|
|
|
<img src="/static/images/error_32.png" alt="Source" />
|
|
|
|
|
Failed build produced output. Click here to inspect the output.
|
|
|
|
|
</a>
|
2011-02-02 12:16:57 +00:00
|
|
|
|
[<a class="productDetailsToggle" href="javascript:">help</a>]
|
2012-04-12 18:12:07 +00:00
|
|
|
|
<div class="well hide productDetails">
|
2011-02-02 12:16:57 +00:00
|
|
|
|
<p>If you have Nix installed on your machine, this failed build output and
|
|
|
|
|
all its dependencies can be unpacked into your local Nix store by doing:</p>
|
|
|
|
|
|
|
|
|
|
<pre>$ curl [% uri %] | gunzip | nix-store --import</pre>
|
|
|
|
|
|
|
|
|
|
<p>The build output can then be found in the path <tt>[% product.path %]</tt>.</p>
|
|
|
|
|
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
2011-01-04 16:08:19 +00:00
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
[% ELSE %]
|
|
|
|
|
<tr class="product">
|
|
|
|
|
<td>
|
|
|
|
|
[% uri = c.uri_for('/build' build.id 'nix' 'pkg' "${build.nixname}-${build.system}.nixpkg") %]
|
|
|
|
|
<a href="[% uri %]">
|
|
|
|
|
<img src="/static/images/nix-build.png" alt="Source" />
|
|
|
|
|
One-click install of Nix package <tt>[% build.nixname %]</tt>
|
|
|
|
|
</a>
|
|
|
|
|
[<a class="productDetailsToggle" href="javascript:">help</a>, <a href="[% contents %]">contents</a>]
|
2012-04-12 18:12:07 +00:00
|
|
|
|
<div class="well hide productDetails">
|
2011-01-04 16:08:19 +00:00
|
|
|
|
<p>If you have Nix installed on your machine, you can
|
|
|
|
|
install this package and all its dependencies automatically
|
|
|
|
|
by clicking on the link above. This requires that you have
|
|
|
|
|
the <tt>application/nix-package</tt> MIME type associated
|
|
|
|
|
with the <tt>nix-install-package</tt> program in your web
|
|
|
|
|
browser. Alternatively, you can install it from the
|
|
|
|
|
command-line:</p>
|
|
|
|
|
|
|
|
|
|
<pre>$ nix-install-package --non-interactive --url [% uri %]</pre>
|
|
|
|
|
|
|
|
|
|
<p>If you get an error message “Permission denied”, you
|
|
|
|
|
should make sure that you have sufficient access rights to
|
|
|
|
|
the Nix store, e.g., run the command as <tt>root</tt>.
|
|
|
|
|
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
2011-02-02 12:16:57 +00:00
|
|
|
|
<tr class="product">
|
|
|
|
|
<td>
|
|
|
|
|
|
|
|
|
|
[% filename = "${build.nixname}.closure.gz" %]
|
|
|
|
|
[% uri = c.uri_for('/build' build.id 'nix' 'closure' filename ) %]
|
|
|
|
|
|
|
|
|
|
<a href="[% uri %]">
|
|
|
|
|
<img src="/static/images/nix-build.png" alt="Source" />
|
|
|
|
|
Nix closure of path <tt>[% product.path %]</tt>
|
|
|
|
|
</a>
|
|
|
|
|
|
|
|
|
|
[<a class="productDetailsToggle" href="javascript:">help</a>]
|
2012-04-12 18:12:07 +00:00
|
|
|
|
<div class="well hide productDetails">
|
2011-02-02 12:16:57 +00:00
|
|
|
|
<p>If you have Nix installed on your machine, this build and
|
|
|
|
|
all its dependencies can be unpacked into your local Nix
|
|
|
|
|
store by doing:</p>
|
|
|
|
|
|
|
|
|
|
<pre>$ gunzip < [% filename %] | nix-store --import</pre>
|
|
|
|
|
|
|
|
|
|
<p>or to download and unpack in one command:</p>
|
|
|
|
|
|
|
|
|
|
<pre>$ curl [% uri %] | gunzip | nix-store --import</pre>
|
|
|
|
|
|
|
|
|
|
<p>The package can then be found in the path <tt>[%
|
|
|
|
|
product.path %]</tt>. You’ll probably also want to do</p>
|
|
|
|
|
|
|
|
|
|
<pre>$ nix-env -i [% product.path %]</pre>
|
|
|
|
|
|
|
|
|
|
<p>to actually install the package in your Nix user environment.</p>
|
|
|
|
|
|
|
|
|
|
<p>If you get the error message “imported
|
|
|
|
|
archive lacks a signature”, you should make sure that you have
|
|
|
|
|
sufficient access rights to the Nix store, e.g., run the
|
|
|
|
|
command as <tt>root</tt>.</p>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
2009-02-23 13:23:55 +00:00
|
|
|
|
|
2011-02-02 12:16:57 +00:00
|
|
|
|
[% END %]
|
2009-02-23 13:23:55 +00:00
|
|
|
|
|
2008-11-27 18:27:19 +00:00
|
|
|
|
[% CASE "file" %]
|
2009-02-23 13:23:55 +00:00
|
|
|
|
|
2010-02-24 15:06:20 +00:00
|
|
|
|
<tr class="product">
|
|
|
|
|
<td>
|
2009-02-25 10:52:41 +00:00
|
|
|
|
<a href="[% uri %]">
|
2008-11-27 18:27:19 +00:00
|
|
|
|
[% SWITCH product.subtype %]
|
|
|
|
|
[% CASE "source-dist" %]
|
|
|
|
|
<img src="/static/images/source-dist.png" alt="Source" /> Source distribution <tt>[% product.name %]</tt>
|
|
|
|
|
[% CASE "rpm" %]
|
|
|
|
|
<img src="/static/images/rpm.png" alt="RPM" /> RPM package <tt>[% product.name %]</tt>
|
2009-10-21 13:48:47 +00:00
|
|
|
|
[% CASE "srpm" %]
|
|
|
|
|
<img src="/static/images/rpm.png" alt="Source RPM" /> Source RPM package <tt>[% product.name %]</tt>
|
2008-11-27 18:27:19 +00:00
|
|
|
|
[% CASE "deb" %]
|
|
|
|
|
<img src="/static/images/debian.png" alt="RPM" /> Debian package <tt>[% product.name %]</tt>
|
2008-12-17 15:59:28 +00:00
|
|
|
|
[% CASE "iso" %]
|
|
|
|
|
<img src="/static/images/iso.png" alt="ISO" /> ISO-9660 CD/DVD image <tt>[% product.name %]</tt>
|
2008-11-27 18:27:19 +00:00
|
|
|
|
[% CASE DEFAULT %]
|
|
|
|
|
File <tt>[% product.name %]</tt> of type <tt>[% product.subtype %]</tt>
|
|
|
|
|
[% END %]
|
|
|
|
|
</a>
|
2009-03-18 17:40:12 +00:00
|
|
|
|
[<a class="productDetailsToggle" href="javascript:">details</a>, <a href="[% contents %]">contents</a>]
|
2012-04-12 18:12:07 +00:00
|
|
|
|
<div class="well hide productDetails">
|
2008-11-27 18:27:19 +00:00
|
|
|
|
<table>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>URL:</th>
|
2009-04-08 08:09:39 +00:00
|
|
|
|
<td><a href="[% uri %]"><tt>[% uri %]</tt></a></td>
|
|
|
|
|
</tr>
|
2009-10-27 15:31:26 +00:00
|
|
|
|
[% IF latestRoot %]
|
2009-04-08 08:09:39 +00:00
|
|
|
|
<tr>
|
|
|
|
|
<th>Links to latest:</th>
|
2008-11-27 18:27:19 +00:00
|
|
|
|
<td>
|
2009-04-08 09:37:05 +00:00
|
|
|
|
[% IF nrProducts > 1 %]
|
|
|
|
|
[% uri2 = "${c.uri_for(latestRoot.join('/') 'download-by-type' product.type product.subtype)}" %]
|
|
|
|
|
<a href="[% uri2 %]"><tt>[% uri2 %]</tt></a>
|
|
|
|
|
<br />
|
|
|
|
|
[% uri2 = "${c.uri_for(latestRoot.join('/') 'download' product.productnr)}" %]
|
|
|
|
|
<a href="[% uri2 %]"><tt>[% uri2 %]</tt></a>
|
|
|
|
|
[% ELSE %]
|
|
|
|
|
[% uri2 = "${c.uri_for(latestRoot.join('/') 'download')}" %]
|
|
|
|
|
<a href="[% uri2 %]"><tt>[% uri2 %]</tt></a>
|
|
|
|
|
[% END %]
|
2008-11-27 18:27:19 +00:00
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
2009-10-27 15:31:26 +00:00
|
|
|
|
[% END %]
|
2008-11-27 18:27:19 +00:00
|
|
|
|
<tr><th>File size:</th><td>[% product.filesize %] bytes ([% mibs(product.filesize / (1024 * 1024)) %] MiB)</td></tr>
|
2008-11-27 20:33:17 +00:00
|
|
|
|
<tr><th>SHA-1 hash:</th><td><tt>[% product.sha1hash %]</tt></td></tr>
|
|
|
|
|
<tr><th>SHA-256 hash:</th><td><tt>[% product.sha256hash %]</tt></td></tr>
|
2008-11-27 18:27:19 +00:00
|
|
|
|
<tr><th>Full path:</th><td><tt>[% product.path %]</tt></td></tr>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
2010-02-24 15:06:20 +00:00
|
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
2008-11-27 18:27:19 +00:00
|
|
|
|
|
|
|
|
|
[% CASE "report" %]
|
2009-02-23 13:23:55 +00:00
|
|
|
|
|
2010-02-24 15:06:20 +00:00
|
|
|
|
<tr class="product">
|
|
|
|
|
<td>
|
2009-02-25 10:52:41 +00:00
|
|
|
|
<a href="[% uri %]">
|
2008-11-27 18:27:19 +00:00
|
|
|
|
<img src="/static/images/report.png" alt="Report" />
|
|
|
|
|
[% SWITCH product.subtype %]
|
|
|
|
|
[% CASE "coverage" %]
|
|
|
|
|
Code coverage analysis report
|
|
|
|
|
[% CASE DEFAULT %]
|
|
|
|
|
Report of type <tt>[% product.subtype %]</tt>
|
|
|
|
|
[% END %]
|
|
|
|
|
</a>
|
2010-02-24 15:06:20 +00:00
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
2008-11-27 18:27:19 +00:00
|
|
|
|
|
2009-05-07 13:15:10 +00:00
|
|
|
|
[% CASE ["doc", "doc-pdf"] %]
|
2008-11-27 18:27:19 +00:00
|
|
|
|
|
2010-02-24 15:06:20 +00:00
|
|
|
|
<tr class="product">
|
|
|
|
|
<td>
|
2009-02-25 10:52:41 +00:00
|
|
|
|
<a href="[% uri %]">
|
2009-05-07 13:15:10 +00:00
|
|
|
|
[% IF product.type == "doc-pdf" %]
|
|
|
|
|
<img src="/static/images/pdf.png" alt="PDF document" />
|
|
|
|
|
[% ELSE %]
|
|
|
|
|
<img src="/static/images/document.png" alt="Document" />
|
|
|
|
|
[% END %]
|
2008-11-27 18:27:19 +00:00
|
|
|
|
[% SWITCH product.subtype %]
|
|
|
|
|
[% CASE "readme" %]
|
2009-11-04 17:16:14 +00:00
|
|
|
|
Read Me!
|
2008-11-27 18:27:19 +00:00
|
|
|
|
[% CASE "manual" %]
|
|
|
|
|
Manual
|
2008-11-29 00:56:40 +00:00
|
|
|
|
[% CASE "release-notes" %]
|
|
|
|
|
Release notes
|
2008-11-27 18:27:19 +00:00
|
|
|
|
[% CASE DEFAULT %]
|
|
|
|
|
Documentation of type <tt>[% product.subtype %]</tt>
|
|
|
|
|
[% END %]
|
|
|
|
|
</a>
|
2010-02-24 15:06:20 +00:00
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
2008-11-27 18:27:19 +00:00
|
|
|
|
|
|
|
|
|
[% CASE DEFAULT %]
|
2009-02-23 13:23:55 +00:00
|
|
|
|
|
2010-02-24 15:06:20 +00:00
|
|
|
|
<tr class="product">
|
|
|
|
|
<td>
|
2008-11-27 18:27:19 +00:00
|
|
|
|
Something of type <tt>[% product.type %]</tt>
|
2010-02-24 15:06:20 +00:00
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
2008-11-27 18:27:19 +00:00
|
|
|
|
|
|
|
|
|
[% END %]
|
2009-02-23 13:23:55 +00:00
|
|
|
|
|
2008-11-27 18:27:19 +00:00
|
|
|
|
[% END -%]
|
|
|
|
|
|
2010-02-24 15:06:20 +00:00
|
|
|
|
</table>
|
2008-11-27 18:27:19 +00:00
|
|
|
|
|
|
|
|
|
[% END %]
|
|
|
|
|
|
2009-03-04 15:25:35 +00:00
|
|
|
|
<script type="text/javascript">
|
2008-11-27 18:27:19 +00:00
|
|
|
|
$(document).ready(function() {
|
|
|
|
|
$('.productDetailsToggle').toggle(
|
|
|
|
|
function () { $(".productDetails", $(this).parents(".product")).fadeIn(); },
|
|
|
|
|
function () { $(".productDetails", $(this).parents(".product")).hide(); }
|
|
|
|
|
);
|
|
|
|
|
});
|
|
|
|
|
</script>
|