aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/templates/admin/dashboard.html
blob: d40ffdf5e6f3497f86ffaf122620a2b0f9419685 (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
{% extends "layout.html" %}
{% block head%}
{{super()}}
{% endblock %}
{% block content %}
<div class="container">
<h1>{{ _('Registered users') }}</h1>
<table class="table table-striped">
    <thead>
        <tr>
            <th>#</th>
            <th>{{ _('Nickname') }}</th>
            <th>{{ _('Email') }}</th>
            <th>{{ _('Actions') }}</th>
        </tr>
    </thead>
    <tbody>
    {% for user in users|sort(attribute="nickname") %}
        <tr>
            <td>{{ loop.index }}</td>
            <td><a href="/admin/user/{{ user.id }}/">{{ user.nickname }}</a></td>
            <td><a href="mailto:{{ user.email }}">{{ user.email  }}</a></td>
            <td>
                <a href="/admin/user/{{ user.id }}/"><i class="glyphicon glyphicon-user" title="{{ _('View this user') }}<"></i></a>
                <a href="/admin/edit_user/{{ user.id }}/"><i class="glyphicon glyphicon-edit" title="{{ _('Edit this user') }}"></i></a>
                {% if user.activation_key == "" %}
                    <a href="/admin/disable_user/{{ user.id }}/"><i class="glyphicon glyphicon-ban-circle" title="Disable this account"></i></a>
                {% else %}
                    <a href="/admin/enable_user/{{ user.id }}/"><i class="glyphicon glyphicon-ok-circle" title="Enable this account"></i></a>
                {% endif %}
                <a href="/admin/delete_user/{{ user.id }}/"><i class="glyphicon glyphicon-remove" title="{{ _('Delete this user') }}" onclick="return confirm('{{ _('You are going to delete this account.') }}');"></i></a>
            </td>
        </tr>
    {% endfor %}
    </tbody>
</table>
<br />
<a href="/admin/create_user/" class="btn btn-default">{{ _('Add a new user') }}</a>
<br /><br />
<p class="text-info">{{ _('As an administrator you are not listed in this table') }}.</p>
</div>
{% endblock %}
bgstack15