dependency-graph.html.tmpl 3.13 KB
Newer Older
1 2 3
[%# This Source Code Form is subject to the terms of the Mozilla Public
  # License, v. 2.0. If a copy of the MPL was not distributed with this
  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
  #
5 6
  # This Source Code Form is "Incompatible With Secondary Licenses", as
  # defined by the Mozilla Public License, v. 2.0.
7 8 9 10 11 12
  #%]

[%# INTERFACE:
  # bug_id: integer. The number of the bug(s).
  # multiple_bugs: boolean. True if bug_id contains > 1 bug number.
  # showsummary: boolean. True if we are showing bug summaries.
13
  # rankdir: string. "TB" if we are ranking top-to-bottom,
14 15
                     "LR" if left-to-right.
  # image_url: string. The URL of the graphic showing the dependencies.
16
  # map_url: string. The URL of the map file for the image.  (Optional)
17
  # image_map: string. The image map for the graphic showing the
18
                       dependencies. (Optional)
19 20 21
  #%]

[% title = "Dependency Graph"
22
   header = title
23
 %]
24

25
[% IF NOT multiple_bugs %]
26
  [% filtered_desc = short_desc FILTER html %]
27
  [% title = "$title for $terms.bug $bug_id"
28 29
     header = "$header for $terms.bug <a href=\"show_bug.cgi?id=$bug_id\">$bug_id</a>"
     subheader = filtered_desc
30 31 32
   %]
[% END %]

33
[% PROCESS global/header.html.tmpl %]
34

35 36
[% image_map %]

37
<p>
38
  Green circles represent open [% terms.bugs %].
39 40
</p>

41
[% IF image_map %]
42
  <img src="[% image_url %]" alt="Dependency graph" usemap="#imagemap">
43 44
[% ELSE %]
  <a href="[% map_url %]">
45
    <img src="[% image_url %]" alt="Dependency graph" ismap="ismap">
46 47
  </a>
[% END %]
48 49 50

<hr>

51
<form action="showdependencygraph.cgi" method="GET">
52 53
  <table>
    <tr>
54 55
      <th align="left"><label for="id">[% terms.Bug %] numbers</label>:</th>
      <td><input id="id" name="id" value="[% bug_id %]"></td>
56
      <td>
57 58
        <input type="checkbox" id="showsummary" name="showsummary" [% " checked" IF showsummary %]>
        <label for="showsummary">Show the summaries of all displayed [% terms.bugs %]</label>
59 60
      </td>
    </tr>
61

62
    <tr>
63 64 65 66 67 68 69 70
      <th align="left"><label for="display">Display:</label></th>
      <td colspan="2">
        <select id="display" name="display">
          <option value="tree"[% 'selected="selected"' IF (!display || display == "tree") %]>
            Restrict to [% terms.bugs %] having a direct relationship with entered [% terms.bugs %]</option>
          <option value="web" [% 'selected="selected"' IF display == "web" %]>
            Show all [% terms.bugs %] having any relationship with entered [% terms.bugs %]</option>
        </select>
71 72
      </td>
    </tr>
73

74
    <tr>
75 76 77 78 79 80 81
      <th align="left"><label for="rankdir">Orientation:</label></th>
      <td colspan="2">
        <select id="rankdir" name="rankdir">
          <option value="TB"[% " selected" IF rankdir == "TB" %]>Top to bottom</option>
          <option value="BT"[% " selected" IF rankdir == "BT" %]>Bottom to top</option>
          <option value="LR"[% " selected" IF rankdir == "LR" %]>Left to right</option>
          <option value="RL"[% " selected" IF rankdir == "RL" %]>Right to left</option>
82 83 84 85
        </select>
      </td>
    </tr>
  </table>
86
  <input type="submit" id="change" value="Change Parameters">
87 88
</form>

89
[% PROCESS global/footer.html.tmpl %]