summaryrefslogtreecommitdiffstats
path: root/extensions/Review/template/en/default/pages/review_suggestions.html.tmpl
blob: 5d9132e40c0db66a855146da4302eadb33f7fc1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
[%# 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/.
  #
  # This Source Code Form is "Incompatible With Secondary Licenses", as
  # defined by the Mozilla Public License, v. 2.0.
  #%]

[% INCLUDE global/header.html.tmpl
  title = "Suggested Reviewers Report"
  style_urls = [ "extensions/BMO/web/styles/reports.css",
                 "extensions/Review/web/styles/reports.css" ]
%]

Products:
<ul>
  [% FOREACH product = products %]
    <li>
      <a href="#[% product.name FILTER uri %]">
        [% product.name FILTER html %]
      </a>
    </li>
  [% END %]
</ul>

<a href="enter_bug.cgi?product=bugzilla.mozilla.org&amp;component=Administration&amp;format=__default__">Request a change</a>

<table id="report" class="hover" cellspacing="0">

<tr id="report-header">
  <th>Product/Component</th>
  <th>Suggested Reviewers</th>
</tr>

[% FOREACH product = products %]
  <tr class="report_subheader">
    <td class="product_name">
      <a name="[% product.name FILTER html %]">
        [% product.name FILTER html %]
      </a>
    </td>
    <td>
    </td>
  </tr>
  [% row_class = "report_row_even" %]
  [% FOREACH component = product.components %]
    <tr class="[% row_class FILTER none %]">
      <td class="component_name">[% component.name FILTER html %]</td>
      <td class="reviewers">
        [% FOREACH reviewer = component.reviewers %]
          <span title="[% reviewer.name FILTER html %]">
          [% reviewer.email FILTER html %]</span>
          [% ", " UNLESS loop.last %]
        [% END %]
      </td>
    </tr>
    [% row_class = row_class == "report_row_even" ? "report_row_odd" : "report_row_even" %]
  [% END %]
  [% IF product.reviewers.size %]
    <tr class="[% row_class FILTER none %]">
      <td class="other_components">All [% product.components.size ? "other" : "" %] components</td>
      <td class="reviewers">
        [% FOREACH reviewer = product.reviewers %]
          <span title="[% reviewer.name FILTER html %]">
          [% reviewer.email FILTER html %]</span>
          [% ", " UNLESS loop.last %]
        [% END %]
      </td>
    </tr>
    [% row_class = row_class == "report_row_even" ? "report_row_odd" : "report_row_even" %]
  [% END %]
[% END %]

</table>

[% INCLUDE global/footer.html.tmpl %]