37dcde0126b1dd43a0fdcfd7d0c87f0951099562
[vuplus_webkit] / Websites / bugs.webkit.org / template / en / default / bug / dependency-graph.html.tmpl
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/
5   #
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.
10   #
11   # The Original Code is the Bugzilla Bug Tracking System.
12   #
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
16   # Rights Reserved.
17   #
18   # Contributor(s): Gervase Markham <gerv@gerv.net>
19   #%]
20
21 [%# INTERFACE:
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)
32   #%]
33
34 [% PROCESS global/variables.none.tmpl %]
35
36 [% title = "Dependency Graph"
37    header = title
38  %]
39
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
45    %]
46 [% END %]
47
48 [% PROCESS global/header.html.tmpl %]
49
50 [% image_map %]
51
52 <p>
53   Green circles represent open [% terms.bugs %].
54 </p>
55
56 [% IF image_map %]
57   <img src="[% image_url %]" alt="Dependency graph" usemap="#imagemap">
58 [% ELSE %]
59   <a href="[% map_url %]">
60     <img src="[% image_url %]" alt="Dependency graph" ismap="ismap">
61   </a>
62 [% END %]
63
64 <hr>
65
66 <form action="showdependencygraph.cgi" method="GET">
67   <table>
68     <tr>
69       <th align="left"><label for="id">[% terms.Bug %] numbers</label>:</th>
70       <td><input id="id" name="id" value="[% bug_id %]"></td>
71       <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>
74       </td>
75     </tr>
76
77     <tr>
78       <th align="left"><label for="display">Display:</label></th>
79       <td colspan="2">
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>
87         </select>
88       </td>
89     </tr>
90
91     <tr>
92       <th align="left"><label for="rankdir">Orientation:</label></th>
93       <td colspan="2">
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>
99         </select>
100       </td>
101     </tr>
102   </table>
103   <input type="submit" id="change" value="Change Parameters">
104 </form>
105
106 [% PROCESS global/footer.html.tmpl %]