summaryrefslogtreecommitdiffstats
path: root/extensions/BMO/template/en/default/pages/group_admins.html.tmpl
blob: 838a1e84a60cc8aac19c7d145729ab1c875eba32 (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
[%# The contents of this file are subject to the Mozilla Public
  # License Version 1.1 (the "License"); you may not use this file
  # except in compliance with the License. You may obtain a copy of
  # the License at http://www.mozilla.org/MPL/
  #
  # Software distributed under the License is distributed on an "AS
  # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  # implied. See the License for the specific language governing
  # rights and limitations under the License.
  #
  # The Original Code is the BMO Extension
  #
  # The Initial Developer of the Original Code is the Mozilla Foundation
  # Portions created by the Initial Developers are Copyright (C) 2011 the
  # Initial Developer. All Rights Reserved.
  #
  # Contributor(s):
  #   David Lawrence <dkl@mozilla.com>
  #%]

[% INCLUDE global/header.html.tmpl
  title = "Group Admins Report"
  style_urls = [ "extensions/BMO/web/styles/reports.css" ]
%]

[% IF groups.size > 0 %]
  <table border="0" cellspacing="0" id="report" class="hover" width="100%">
    <tr id="report-header">
      <th align="left">Name</th>
      <th align="left">Owner</th>
      <th align="left">Admins</th>
    </tr>

    [% FOREACH group = groups %]
      [% count = loop.count() %]
      <tr class="report_item [% count % 2 == 1 ? "report_row_odd" : "report_row_even" %]">
        <td nowrap>
          <span title="[% group.description FILTER html %]">
            [% group.name FILTER html %]</span>
        </td>
        <td nowrap>
          [% IF group.owner.login == Param('nobody_user') %]
            &ndash;
          [% ELSE %]
            [% INCLUDE global/user.html.tmpl who = group.owner %]
          [% END %]
        </td>
        <td>
          [% FOREACH admin = group.admins %]
            [% INCLUDE global/user.html.tmpl who = admin %][% ", " UNLESS loop.last %]
          [% END %]
        </td>
      </tr>
    [% END %]
  </table>
[% ELSE %]
  <p>
    No groups found.
  </p>
[% END %]

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