blob: 518d1b14ec271091ee1c882c403414d12de417c2 (
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
|
[% INCLUDE 'admin/header.html' title=loc('Flagged reports and users') %]
[% PROCESS 'admin/report_blocks.html' %]
<p class="fms-admin-info">
[% loc("You can flag any report or user by editing them, and they will be listed on this page.
For example, this can useful if you want to keep an eye on a user who has posted inappropriate
reports in the past.") %]
</p>
<h2>[% loc( 'Problems' ) %]</h2>
[% IF problems.size > 0 %]
<table cellspacing="0" cellpadding="2" border="1">
<tr>
<th>[% loc('ID') %]</th>
<th>[% loc('Title') %]</th>
<th>[% loc('Name') %]</th>
<th>[% loc('Body') %]</th>
<th>[% loc('State') %]</th>
<th>*</th>
</tr>
[% INCLUDE 'admin/problem_row.html' %]
</table>
[% ELSE %]
<p class="fms-admin-warning">
[% loc('No flagged problems found.') %]
</p>
[% END %]
<h2>[% loc( 'Users' ) %]</h2>
<p class="fms-admin-info">
[% loc("Flagged users are not restricted in any way. This is just a list of users that have been marked for attention.") %]
</p>
[% IF users.size %]
<table cellspacing="0" cellpadding="2" border="1">
<tr>
<th>[% loc('Name') %]</th>
<th>[% loc('Email') %]</th>
<th>[% loc('In abuse table?') %]</th>
<th> </th>
</tr>
[%- FOREACH user IN users %]
<tr [% IF user.flagged == 2 %]class="is-deleted"[% END %]>
<td>[% user.name | html %]</td>
<td>[% user.email | html %]</td>
<td>
[% IF user.flagged == 2 %] <strong>[% loc('Yes') %]</strong> [% ELSE %] [% END %]
</td>
<td>
<a href="[% c.uri_for( 'reports', search => user.email ) %]">list content</a>
[% IF user.id %] | <a href="[% c.uri_for( 'user_edit', user.id ) %]">[% loc('edit user') %]</a>[% END %]
</td>
</tr>
[%- END %]
</table>
[%- ELSE %]
<p class="fms-admin-warning">
[% loc('No flagged users found.') %]
</p>
[%- END %]
[% INCLUDE 'admin/footer.html' %]
|