blob: cc965b739aa14b1e25f3be67e2326c5465ad6032 (
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
|
{#
# GNU MediaGoblin -- federated, autonomous media hosting
# Copyright (C) 2011, 2012 MediaGoblin contributors. See AUTHORS.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#}
{% extends "mediagoblin/base.html" %}
{% block title -%}
{% trans %}User panel{% endtrans %} — {{ super() }}
{%- endblock %}
{% block mediagoblin_content %}
<h1>{% trans %}User panel{% endtrans %}</h1>
<p>
{% trans %}Here you can look up users in order to take punitive actions on them.{% endtrans %}
</p>
<h2>{% trans %}Active Users{% endtrans %}</h2>
{% if user_list.count() %}
<table class="admin_panel processing">
<tr>
<th>{% trans %}ID{% endtrans %}</th>
<th>{% trans %}Username{% endtrans %}</th>
<th>{% trans %}When Joined{% endtrans %}</th>
<th>{% trans %}# of Comments Posted{% endtrans %}</th>
</tr>
{% for user in user_list %}
<tr>
<td>{{ user.id }}</td>
<td><a href="{{ request.urlgen('mediagoblin.admin.users_detail',
user= user.username) }}">{{ user.username }}</a></td>
<td>{{ user.created.strftime("%F %R") }}</td>
<td>{{ user.posted_comments.count() }}</td>
</tr>
{% endfor %}
</table>
{% else %}
<p><em>{% trans %}No users found.{% endtrans %}</em></p>
{% endif %}
{% endblock %}
|