Author: rob
Date: Tue Jan 4 16:08:19 2011
New Revision: 25389
URL: https://svn.nixos.org/websvn/nix/?rev=25389&sc=1
Log:
hydra: change icon for positive failures
Modified:
hydra/trunk/src/root/product-list.tt
Modified: hydra/trunk/src/root/product-list.tt
==============================================================================
--- hydra/trunk/src/root/product-list.tt Tue Jan 4 15:20:59 2011
(r25388)
+++ hydra/trunk/src/root/product-list.tt Tue Jan 4 16:08:19 2011
(r25389)
@@ -19,36 +19,46 @@
[% SWITCH product.type %]
[% CASE "nix-build" %]
-
- <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>]
- <div class="help productDetails">
- <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>
-
+ [% IF build.resultInfo.buildstatus == 6 %]
+ <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>
+ </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>]
+ <div class="help productDetails">
+ <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>
+ [% END %]
<tr class="product">
<td>
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits