forked from lix-project/hydra
Add maximum nest level for input changes on build page.
This commit is contained in:
parent
1cf2a1592a
commit
28b6ff3ed6
|
@ -329,6 +329,11 @@
|
||||||
[% IF !nestedDiff %]
|
[% IF !nestedDiff %]
|
||||||
<tr><th>Input</th><th>Changes</th></tr>
|
<tr><th>Input</th><th>Changes</th></tr>
|
||||||
[% END %]
|
[% END %]
|
||||||
|
[% IF !nestLevel %]
|
||||||
|
[% nestLevel = 0 %]
|
||||||
|
[% END %]
|
||||||
|
|
||||||
|
[% IF nestLevel <= 3 %]
|
||||||
[% FOREACH bi1 IN build1.inputs %]
|
[% FOREACH bi1 IN build1.inputs %]
|
||||||
[% deletedInput = 1 %]
|
[% deletedInput = 1 %]
|
||||||
[% FOREACH bi2 IN build2.inputs %]
|
[% 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>
|
<b>[% bi1.name %]</b></td><td><tt>[% INCLUDE renderShortInputValue input=bi1 %] to [% INCLUDE renderShortInputValue input=bi2 %]</tt>
|
||||||
<br/>
|
<br/>
|
||||||
<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>
|
</td></tr>
|
||||||
[% END %]
|
[% END %]
|
||||||
[% ELSE %]
|
[% ELSE %]
|
||||||
|
@ -365,6 +370,7 @@
|
||||||
<tr><td><b>[% bi1.name %]</b></td><td>Input not present in this build.</td></tr>
|
<tr><td><b>[% bi1.name %]</b></td><td>Input not present in this build.</td></tr>
|
||||||
[% END %]
|
[% END %]
|
||||||
[% END %]
|
[% END %]
|
||||||
|
[% END %]
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
[% END %]
|
[% END %]
|
||||||
|
|
Loading…
Reference in a new issue