From 355cb9728d83a04e420501fd8402e88fb08daf1f Mon Sep 17 00:00:00 2001 From: "myk%mozilla.org" <> Date: Thu, 18 Apr 2002 04:58:26 +0000 Subject: Fix for bug 126792: Templatizes showdependencytree.cgi. Patch by Myk Melez . r=afranke,gerv --- template/default/show/dependency-tree.html.tmpl | 208 ++++++++++++++++++++++++ 1 file changed, 208 insertions(+) create mode 100644 template/default/show/dependency-tree.html.tmpl (limited to 'template/default/show/dependency-tree.html.tmpl') diff --git a/template/default/show/dependency-tree.html.tmpl b/template/default/show/dependency-tree.html.tmpl new file mode 100644 index 000000000..778d28a9e --- /dev/null +++ b/template/default/show/dependency-tree.html.tmpl @@ -0,0 +1,208 @@ +[%# 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/header + title = "Dependency tree for Bug $bugid" + h1 = "Dependency tree for bug $bugid" + style = "strike { background-color: #d9d9d9; color: #000000; }" +%] + +[% PROCESS depthControlToolbar %] + +[%# Display the tree of bugs that this bug depends on. %] +

Bugs that bug [% bugid %] depends on +[% IF dependson_ids.size > 0 %] + (view as bug list + [% IF canedit && dependson_ids.size > 1 %] + | change several + [% END %]) + [% IF maxdepth || hide_resolved %] + + (Only [% "open" IF hide_resolved %] bugs + [% " whose depth is less than $maxdepth" IF maxdepth %] + will be shown) + + [% END %] +

+ [% INCLUDE display_tree tree=dependson_tree bug_id=bugid %] +[% ELSE %] + +

None

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

Bugs that bug [% bugid %] blocks +[% IF blocked_ids.size > 0 %] + (view as bug list + [% IF canedit && blocked_ids.size > 1 %] + | change several + [% END %]) + [% IF maxdepth || hide_resolved %] + + (Only [% "open" IF hide_resolved %] bugs + [% " whose depth is less than $maxdepth" IF maxdepth %] + will be shown) + + [% END %] +

+ [% INCLUDE display_tree tree=blocked_tree bug_id=bugid %] +[% ELSE %] + +

None

+[% END %] + +[% PROCESS depthControlToolbar %] + +[% PROCESS global/footer %] + + +[%###########################################################################%] +[%# Block to display a tree #%] +[%###########################################################################%] + +[% BLOCK display_tree %] + +[% END %] + +[%###########################################################################%] +[%# 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 ? + "disabled" : "" + %]> +
+
+
+ [%# Unlimited button %] + + + +
+
+[% END %] -- cgit v1.2.3-24-g4f1b