From d033109bdc8729e9ef46fc82ad200c7d2cda5a1a Mon Sep 17 00:00:00 2001 From: "gerv%gerv.net" <> Date: Fri, 19 Apr 2002 01:56:11 +0000 Subject: Bug 135707 - rearrange templates to normalise filenames, and create directory structure which allows for localised versions of the templates. Earlier versions of these templates can be found, cvs removed, scattered around bugzilla/template/default; but there are no substantial changes between their initial checkin there and here. --- template/en/default/bug/dependency-tree.html.tmpl | 208 ++++++++++++++++++++++ 1 file changed, 208 insertions(+) create mode 100644 template/en/default/bug/dependency-tree.html.tmpl (limited to 'template/en/default/bug/dependency-tree.html.tmpl') diff --git a/template/en/default/bug/dependency-tree.html.tmpl b/template/en/default/bug/dependency-tree.html.tmpl new file mode 100644 index 000000000..ba0b8213f --- /dev/null +++ b/template/en/default/bug/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