blob: b1f9b82c5d7da5831f8163d8463b83c266755a68 (
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
|
[%# 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 = "Group Members Report"
style_urls = [ "extensions/BMO/web/styles/reports.css" ]
%]
<form method="GET" action="page.cgi">
<input type="hidden" name="id" value="group_members.html">
<table id="parameters">
<tr>
<th>Group</th>
<td>
<select name="group">
[% FOREACH group_name = groups %]
<option value="[% group_name FILTER html %]"
[% "selected" IF group_name == group.name %]>
[% group_name FILTER html %]</option>
[% END %]
</select>
<input type="checkbox" name="include_disabled" id="include_disabled"
value="1" [% "checked" IF include_disabled %]>
<label for="include_disabled">
Include disabled users
</label>
<input type="submit" value="Generate">
</td>
</tr>
</table>
</form>
[% IF group != '' %]
<p>
[% count FILTER none %] member[% count == 1 ? '' : 's' %] of the <b>[% group.name FILTER html %]</b> group:
</p>
[% IF types.size > 0 %]
<table border="0" cellspacing="0" id="report" class="nohover" width="100%">
<tr id="report-header">
<th>Type</th>
<th>Count</th>
<th>Members</th>
[% IF privileged || (user.id == group.owner.id) %]
<th class="right">2FA, Last Seen (days ago)</th>
[% END %]
</tr>
[% FOREACH type = types %]
[% count = loop.count() %]
<tr class="report_item [% count % 2 == 1 ? "report_row_odd" : "report_row_even" %]">
<td valign="top" nowrap>
[% IF type.name == 'direct' %]
direct
[% ELSE %]
via
[% IF privileged %]
<a href="page.cgi?id=group_members.html&group=[% type.name FILTER uri %]">
[% type.name FILTER html %]
</a>
[% ELSE %]
another group
[% END %]
[% END %]
</td>
<td valign="top" align="right">
[% type.members.size FILTER html %]
</td>
<td valign="top" width="100%" colspan="2">
<table cellspacing="0" class="hoverrow">
[% FOREACH member = type.members %]
<tr>
<td width="100%">
[% IF privileged %]
<a href="editusers.cgi?action=edit&userid=[% member.id FILTER none %]"
target="_blank">
[% ELSE %]
<a href="user_profile?login=[% member.login FILTER uri %]"
target="_blank">
[% END %]
<span [% 'class="bz_inactive"' UNLESS member.is_enabled %]>
[% member.name FILTER html %] <[% member.email FILTER email FILTER html %]>
</span>
</a>
</td>
[% IF privileged %]
<td nowrap>
[% IF member.mfa %]
[% member.mfa FILTER html %]
[% " (weakened)" IF member.settings.api_key_only.value == "off" %]
[% ELSE %]
-
[% END %]
</td>
<td align="right" nowrap>
[% member.lastseen FILTER html %]
</td>
[% END %]
</tr>
[% END %]
</table>
</td>
</tr>
[% END %]
</table>
<a href="page.cgi?id=group_members.json&group=[% group.name FILTER uri %]
[% IF include_disabled %]&include_disabled=1[% END %]">JSON</a>
[% ELSE %]
<p>
<i>This group is empty.</i>
</p>
[% END %]
[% END %]
[% INCLUDE global/footer.html.tmpl %]
|