proxadmin/app/templates/admin/list_users.html

53 lines
1.8 KiB
HTML
Raw Normal View History

2017-06-04 10:10:38 -04:00
{% extends "base.html" %}
{% block page_content %}
<div class="row">
2017-06-06 09:49:32 -04:00
{% include "admin/admin_tasks.html" %}
2017-06-04 11:22:59 -04:00
<div class="col-md-12">
2017-07-25 10:33:23 -04:00
<div class="panel panel-info" id="users">
<div class="panel-heading">List Active Users</div>
2017-06-04 11:22:59 -04:00
<div class="panel-body"><p>
2018-01-30 22:08:33 -05:00
<div class="no-more-tables">
2018-03-24 18:44:06 -04:00
{{ pagination.info }}
{{ pagination.links }}
2017-06-04 11:22:59 -04:00
<table class="table table-hover table-striped table-condensed cf">
<thead>
<tr>
<td>email</td>
<td>last seen</td>
<td>last ip</td>
<td>wallet</td>
2018-01-30 22:08:33 -05:00
<td>currency</td>
2017-06-10 23:26:10 -04:00
<td></td>
2017-06-04 11:22:59 -04:00
</tr>
</thead>
<tbody>
{% for usr in users %}
2018-03-24 18:44:06 -04:00
{% set rowloop = loop %}
2017-06-04 11:22:59 -04:00
<tr>
2018-03-24 18:44:06 -04:00
<td>{{ loop.index + (page - 1) * per_page }}</td>
2018-01-30 22:08:33 -05:00
<td data-title="Email"><font {% if usr.is_administrator() == True %}color="red"{% endif %}>{{ usr.email }}</td>
<td data-title="Last Seen">{{ moment(usr.last_seen).format('lll') }}</td>
<td data-title="Last IP"><a href="https://apps.db.ripe.net/search/query.html?searchtext={{ usr.last_ip }}" data-toggle="tooltip" title="RIPE Whois Search" target="_blank">{{ usr.last_ip }}</a></td>
<td data-title="Wallet">{{ usr.wallet }}</td>
<td data-title="Currency">{{ usr.currency }}</td>
2017-06-13 19:24:39 -04:00
<td><a href="{{ url_for('admin.charge', user_pid=usr.pid) }}" data-toggle="tooltip" title="Add Funds"><span class="glyphicon glyphicon-plus"></span></a>
<a href="{{ url_for('admin.transaction', user_pid=usr.pid) }}" data-toggle="tooltip" title="List Transactions"><span class="glyphicon glyphicon-credit-card"></span></a>
<a href="{{ url_for('admin.dashboard', user_pid=usr.pid) }}" data-toggle="tooltip" title="Show Dashboard"><span class="glyphicon glyphicon-modal-window"></span></a>
</tr>
2017-06-04 11:22:59 -04:00
{% endfor %}
</tbody>
2017-06-06 09:49:32 -04:00
</table>
2018-03-24 18:44:06 -04:00
{{ pagination.links }}
2017-06-04 11:22:59 -04:00
</div>
</div>
</div>
2017-06-04 10:10:38 -04:00
</div>
2017-06-06 09:49:32 -04:00
<div class="row">
</div>
2017-06-04 10:10:38 -04:00
{% endblock %}