Branch: refs/heads/master
Home: https://github.com/NixOS/hydra
Commit: 28b6ff3ed6d8de89ea407218d745bc8b972d22f6
https://github.com/NixOS/hydra/commit/28b6ff3ed6d8de89ea407218d745bc8b972d22f6
Author: Rob Vermaas <[email protected]>
Date: 2012-04-16 (Mon, 16 Apr 2012)
Changed paths:
M src/root/common.tt
Log Message:
-----------
Add maximum nest level for input changes on build page.
diff --git a/src/root/common.tt b/src/root/common.tt
index 6e6a325..bbf4ced 100644
--- a/src/root/common.tt
+++ b/src/root/common.tt
@@ -329,6 +329,11 @@
[% IF !nestedDiff %]
<tr><th>Input</th><th>Changes</th></tr>
[% END %]
+ [% IF !nestLevel %]
+ [% nestLevel = 0 %]
+ [% END %]
+
+ [% IF nestLevel <= 3 %]
[% FOREACH bi1 IN build1.inputs %]
[% deletedInput = 1 %]
[% FOREACH bi2 IN build2.inputs %]
@@ -351,7 +356,7 @@
<b>[% bi1.name %]</b></td><td><tt>[% INCLUDE
renderShortInputValue input=bi1 %] to [% INCLUDE renderShortInputValue
input=bi2 %]</tt>
<br/>
<br/>
- [% INCLUDE renderInputDiff build1=bi1.dependency,
build2=bi2.dependency, nestedDiff=1 %]
+ [% INCLUDE renderInputDiff build1=bi1.dependency,
build2=bi2.dependency, nestedDiff=1, nestLevel=nestLevel+1 %]
</td></tr>
[% END %]
[% ELSE %]
@@ -365,6 +370,7 @@
<tr><td><b>[% bi1.name %]</b></td><td>Input not present in this
build.</td></tr>
[% END %]
[% END %]
+ [% END %]
</table>
[% END %]
================================================================
_______________________________________________
nix-commits mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-commits