2 # GNU MediaGoblin -- federated, autonomous media hosting
3 # Copyright (C) 2011, 2012 MediaGoblin contributors. See AUTHORS.
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.
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.
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/>.
18 {% extends "mediagoblin/base.html" %}
21 {% trans %}User panel{% endtrans %} — {{ super() }}
24 {% block mediagoblin_content %}
26 <h1>{% trans %}User panel{% endtrans %}</h1>
29 {% trans %}Here you can look up users in order to take punitive actions on them.{% endtrans %}
32 <h2>{% trans %}Active Users{% endtrans %}</h2>
34 {% if user_list.count() %}
35 <table class="admin_panel processing">
37 <th>{% trans %}ID{% endtrans %}</th>
38 <th>{% trans %}Username{% endtrans %}</th>
39 <th>{% trans %}When Joined{% endtrans %}</th>
40 <th>{% trans %}# of Comments Posted{% endtrans %}</th>
42 {% for user in user_list %}
44 <td>{{ user.id }}</td>
45 <td><a href="{{ request.urlgen('mediagoblin.moderation.users_detail',
46 user= user.username) }}">{{ user.username }}</a></td>
47 <td>{{ user.created.strftime("%F %R") }}</td>
48 <td>{{ user.posted_comments.count() }}</td>
53 <p><em>{% trans %}No users found.{% endtrans %}</em></p>