[%# 1.0@bugzilla.org %] [%# The contents of this file are subject to the Mozilla Public # License Version 1.1 (the "License"); you may not use this file # except in compliance with the License. You may obtain a copy of # the License at http://www.mozilla.org/MPL/ # # Software distributed under the License is distributed on an "AS # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or # implied. See the License for the specific language governing # rights and limitations under the License. # # The Original Code is the Bugzilla Bug Tracking System. # # The Initial Developer of the Original Code is Netscape Communications # Corporation. Portions created by Netscape are # Copyright (C) 1998 Netscape Communications Corporation. All # Rights Reserved. # # Contributor(s): Tobias Burnus # Ville Skyttä # Myk Melez #%] [% PROCESS global/variables.none.tmpl %] [% PROCESS global/header.html.tmpl title = "Dependency tree for $terms.Bug $bugid" h1 = "Dependency tree for $terms.Bug $bugid" %] [% PROCESS depthControlToolbar %] [%# Display the tree of bugs that this bug depends on. %]

[% IF hide_resolved %] Open [% terms.bugs %] [% ELSE %] [% terms.Bugs %] [% END %] that [% terms.bug %] [%+ bugid %] depends on

[% IF dependson_ids.size > 0 %] ( [% IF maxdepth -%]Up to [% maxdepth %] level[% "s" IF maxdepth > 1 %] deep | [% END %] view as [% terms.bug %] list [% IF canedit && dependson_ids.size > 1 %] | change several [% END %]) [% INCLUDE display_tree tree=dependson_tree bug_id=bugid %] [% ELSE %]

None

[% END %] [%# Display the tree of bugs that this bug blocks. %]

[% IF hide_resolved %] Open [% terms.bugs %] [% ELSE %] [% terms.Bugs %] [% END %] that [% terms.bug %] [%+ bugid %] blocks

[% IF blocked_ids.size > 0 %] ( [% IF maxdepth -%]Up to [% maxdepth %] level[% "s" IF maxdepth > 1 %] deep | [% END %] view as [% terms.bug %] list [% IF canedit && blocked_ids.size > 1 %] | change several [% END %]) [% INCLUDE display_tree tree=blocked_tree bug_id=bugid %] [% ELSE %]

None

[% END %] [% PROCESS depthControlToolbar %] [%###########################################################################%] [%# Block to display a tree #%] [%###########################################################################%] [% BLOCK display_tree %] [% tree.$bug_id.seen = 1 %] [% END %] [% PROCESS global/footer.html.tmpl %] [%###########################################################################%] [%# Block for depth control toolbar #%] [%###########################################################################%] [% BLOCK depthControlToolbar %] [%# Hide/show resolved button Swaps text depending on the state of hide_resolved %]
[% IF maxdepth %] [% END %]
Max Depth:  
[%# set to one form %]
[%# Minus one form Allow subtracting only when realdepth and maxdepth > 1 %]
[%# Limit entry form: the button can not do anything when total depth is less than two, so disable it %]
[%# plus one form Disable button if total depth < 2, or if depth set to unlimited %] [% IF maxdepth %] [% END %] = realdepth %] %]>
[%# Unlimited button %]
[% END %]