From 28b6ff3ed6d8de89ea407218d745bc8b972d22f6 Mon Sep 17 00:00:00 2001 From: Rob Vermaas Date: Mon, 16 Apr 2012 13:59:29 +0200 Subject: [PATCH] Add maximum nest level for input changes on build page. --- src/root/common.tt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/root/common.tt b/src/root/common.tt index 6e6a325c..bbf4ced3 100644 --- a/src/root/common.tt +++ b/src/root/common.tt @@ -329,6 +329,11 @@ [% IF !nestedDiff %] InputChanges [% 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 @@ [% bi1.name %][% INCLUDE renderShortInputValue input=bi1 %] to [% INCLUDE renderShortInputValue input=bi2 %]

- [% INCLUDE renderInputDiff build1=bi1.dependency, build2=bi2.dependency, nestedDiff=1 %] + [% INCLUDE renderInputDiff build1=bi1.dependency, build2=bi2.dependency, nestedDiff=1, nestLevel=nestLevel+1 %] [% END %] [% ELSE %] @@ -365,6 +370,7 @@ [% bi1.name %]Input not present in this build. [% END %] [% END %] + [% END %] [% END %]