components.html.tmpl 2.25 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
[%# INTERFACE:
10 11
  # product: object. The product for which we want to display component
  # descriptions.
12
  #%]
13 14 15 16 17

[% title = BLOCK %]
  Components for [% product.name FILTER html %]
[% END %]

18
[% PROCESS global/header.html.tmpl 
19 20
  style_urls = ['skins/standard/buglist.css']
  title = title
21
%]
22 23 24 25 26 27 28

[% IF Param("useqacontact") %]
  [% numcols = 3 %]
[% ELSE %]
  [% numcols = 2 %]
[% END %]

29
<h1>[% product.name FILTER html %]</h1>
30

31
<div id="product_desc">[% product.description FILTER html_light %]</div>
32
<p>Select a component to see open [% terms.bugs %] in that component.</p>
33

34
<table id="component_table">
35
  <tr>
36
    <th>Component</th>
37
    <th>Default Assignee</th>
38
    [% IF Param("useqacontact") %]
39
      <th>Default QA Contact</th>
40
    [% END %]
41 42 43 44 45 46
  </tr>

  [% FOREACH comp = product.components %]
    [% INCLUDE describe_comp %]
  [% END %]
</table>
47

48
[% PROCESS global/footer.html.tmpl %]
49 50 51 52 53 54

[%############################################################################%]
[%# BLOCK for components                                                      %]
[%############################################################################%]

[% BLOCK describe_comp %]
55
  <tr id="[% comp.name FILTER html %]">
56
    <td rowspan="2" class="component_name">
57
      <a href="buglist.cgi?product=
58 59
               [%- product.name FILTER uri %]&amp;component=
               [%- comp.name FILTER uri %]&amp;resolution=---">
60
      [% comp.name FILTER html %]</a>
61
    </td>
62
    <td class="component_assignee">
63
      [% INCLUDE global/user.html.tmpl who = comp.default_assignee %]
64 65
    </td>
    [% IF Param("useqacontact") %]
66
      <td class="component_qa_contact">
67 68 69
        [% IF comp.default_qa_contact %]
          [% INCLUDE global/user.html.tmpl who = comp.default_qa_contact %]
        [% END %]
70 71 72 73
      </td>
    [% END %]
  </tr>
  <tr>
74
    <td colspan="[% numcols - 1 %]" class="component_description">
75
      [% comp.description FILTER html_light %]
76 77 78
    </td>
  </tr>
[% END %]