1 [%# The contents of this file are subject to the Mozilla Public
2 # License Version 1.1 (the "License"); you may not use this file
3 # except in compliance with the License. You may obtain a copy of
4 # the License at http://www.mozilla.org/MPL/
6 # Software distributed under the License is distributed on an "AS
7 # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
8 # implied. See the License for the specific language governing
9 # rights and limitations under the License.
11 # The Original Code is the Bugzilla Bug Tracking System.
13 # The Initial Developer of the Original Code is Netscape Communications
14 # Corporation. Portions created by Netscape are
15 # Copyright (C) 1998 Netscape Communications Corporation. All
18 # Contributor(s): Gervase Markham <gerv@gerv.net>
22 # bug_id: integer. The number of the bug(s).
23 # multiple_bugs: boolean. True if bug_id contains > 1 bug number.
24 # doall: boolean. True if we are displaying every bug in the database.
25 # showsummary: boolean. True if we are showing bug summaries.
26 # rankdir: string. "TB" if we are ranking top-to-bottom,
27 "LR" if left-to-right.
28 # image_url: string. The URL of the graphic showing the dependencies.
29 # map_url: string. The URL of the map file for the image. (Optional)
30 # image_map: string. The image map for the graphic showing the
31 dependencies. (Optional)
34 [% PROCESS global/variables.none.tmpl %]
36 [% title = "Dependency Graph"
40 [% IF NOT multiple_bugs AND NOT doall %]
41 [% filtered_desc = short_desc FILTER html %]
42 [% title = "$title for $terms.bug $bug_id"
43 header = "$header for $terms.bug <a href=\"show_bug.cgi?id=$bug_id\">$bug_id</a>"
44 subheader = filtered_desc
48 [% PROCESS global/header.html.tmpl %]
53 Green circles represent open [% terms.bugs %].
57 <img src="[% image_url %]" alt="Dependency graph" usemap="#imagemap">
59 <a href="[% map_url %]">
60 <img src="[% image_url %]" alt="Dependency graph" ismap="ismap">
66 <form action="showdependencygraph.cgi" method="GET">
69 <th align="left"><label for="id">[% terms.Bug %] numbers</label>:</th>
70 <td><input id="id" name="id" value="[% bug_id %]"></td>
72 <input type="checkbox" id="showsummary" name="showsummary" [% " checked" IF showsummary %]>
73 <label for="showsummary">Show the summaries of all displayed [% terms.bugs %]</label>
78 <th align="left"><label for="display">Display:</label></th>
80 <select id="display" name="display">
81 <option value="tree"[% 'selected="selected"' IF (!display || display == "tree") %]>
82 Restrict to [% terms.bugs %] having a direct relationship with entered [% terms.bugs %]</option>
83 <option value="web" [% 'selected="selected"' IF display == "web" %]>
84 Show all [% terms.bugs %] having any relationship with entered [% terms.bugs %]</option>
85 <option value="doall" [% 'selected="selected"' IF display == "doall" %]>
86 Show every [% terms.bug %] in the system with dependencies</option>
92 <th align="left"><label for="rankdir">Orientation:</label></th>
94 <select id="rankdir" name="rankdir">
95 <option value="TB"[% " selected" IF rankdir == "TB" %]>Top to bottom</option>
96 <option value="BT"[% " selected" IF rankdir == "BT" %]>Bottom to top</option>
97 <option value="LR"[% " selected" IF rankdir == "LR" %]>Left to right</option>
98 <option value="RL"[% " selected" IF rankdir == "RL" %]>Right to left</option>
103 <input type="submit" id="change" value="Change Parameters">
106 [% PROCESS global/footer.html.tmpl %]