3ce0c611 |
1 | {# |
2 | # GNU MediaGoblin -- federated, autonomous media hosting |
3 | # Copyright (C) 2011, 2012 MediaGoblin contributors. See AUTHORS. |
4 | # |
5 | # This program is free software: you can redistribute it and/or modify |
6 | # it under the terms of the GNU Affero General Public License as published by |
7 | # the Free Software Foundation, either version 3 of the License, or |
8 | # (at your option) any later version. |
9 | # |
10 | # This program is distributed in the hope that it will be useful, |
11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 | # GNU Affero General Public License for more details. |
14 | # |
15 | # You should have received a copy of the GNU Affero General Public License |
16 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
17 | #} |
18 | {% extends "mediagoblin/base.html" %} |
19 | |
20 | {% block title -%} |
21 | {% trans %}User panel{% endtrans %} — {{ super() }} |
22 | {%- endblock %} |
23 | |
24 | {% block mediagoblin_content %} |
25 | |
26 | <h1>{% trans %}User panel{% endtrans %}</h1> |
27 | |
28 | <p> |
3aa3871b |
29 | {% trans %} |
30 | Here you can look up users in order to take punitive actions on them. |
31 | {% endtrans %} |
3ce0c611 |
32 | </p> |
33 | |
34 | <h2>{% trans %}Active Users{% endtrans %}</h2> |
35 | |
36 | {% if user_list.count() %} |
37 | <table class="admin_panel processing"> |
38 | <tr> |
39 | <th>{% trans %}ID{% endtrans %}</th> |
40 | <th>{% trans %}Username{% endtrans %}</th> |
41 | <th>{% trans %}When Joined{% endtrans %}</th> |
42 | <th>{% trans %}# of Comments Posted{% endtrans %}</th> |
43 | </tr> |
44 | {% for user in user_list %} |
45 | <tr> |
46 | <td>{{ user.id }}</td> |
3aa3871b |
47 | <td> |
48 | <a href="{{ request.urlgen('mediagoblin.moderation.users_detail', |
49 | user= user.username) }}"> |
50 | {{ user.username }} |
51 | </a> |
52 | </td> |
3ce0c611 |
53 | <td>{{ user.created.strftime("%F %R") }}</td> |
54 | <td>{{ user.posted_comments.count() }}</td> |
55 | </tr> |
56 | {% endfor %} |
57 | </table> |
58 | {% else %} |
59 | <p><em>{% trans %}No users found.{% endtrans %}</em></p> |
60 | {% endif %} |
61 | {% endblock %} |