2012-11-09 00:09:58 +01:00
|
|
|
{% extends "zephyr/base.html" %}
|
|
|
|
|
|
|
|
{# User Activity. #}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
|
|
|
|
{% for name, has_pointer, rows in data %}
|
|
|
|
|
|
|
|
<h2>{{ name }} usage</h2>
|
2012-11-09 21:16:14 +01:00
|
|
|
<table class="table sortable table-striped table-bordered">
|
|
|
|
<thead class="activity_head">
|
2012-11-09 00:09:58 +01:00
|
|
|
<tr>
|
2012-11-09 21:16:14 +01:00
|
|
|
<th>User</th>
|
|
|
|
<th>Last get_updates</th>
|
|
|
|
<th>Last send_message</th>
|
2012-11-09 00:09:58 +01:00
|
|
|
{% if has_pointer %}
|
2012-11-09 21:16:14 +01:00
|
|
|
<th>Last update_pointer</th>
|
|
|
|
<th>Number of pointer updates</th>
|
2012-11-09 00:09:58 +01:00
|
|
|
{% endif %}
|
2012-11-09 21:16:14 +01:00
|
|
|
<th>Number of messages sent</th>
|
2012-11-09 00:09:58 +01:00
|
|
|
</tr>
|
2012-11-09 21:16:14 +01:00
|
|
|
</thead>
|
|
|
|
<tbody>
|
2012-11-09 00:09:58 +01:00
|
|
|
{% for row in rows %}
|
|
|
|
<tr>
|
|
|
|
<td>{{ row.email }}</td>
|
2012-11-09 21:16:14 +01:00
|
|
|
<td sorttable_customkey="{{ row.get_updates_last|date:'YmdHi' }}">{{ row.get_updates_last }}</td>
|
|
|
|
<td sorttable_customkey="{{ row.send_message_last|date:'YmdHi' }}">{{ row.send_message_last }}</td>
|
2012-11-09 00:09:58 +01:00
|
|
|
{% if has_pointer %}
|
2012-11-09 21:16:14 +01:00
|
|
|
<td sorttable_customkey="{{ row.update_pointer_last|date:'YmdHi' }}">{{ row.update_pointer_last }}</td>
|
2012-11-09 00:09:58 +01:00
|
|
|
<td>{{ row.update_pointer_count }}</td>
|
|
|
|
{% endif %}
|
|
|
|
<td>{{ row.send_message_count }}</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
2012-11-09 21:16:14 +01:00
|
|
|
</tbody>
|
2012-11-09 00:09:58 +01:00
|
|
|
</table>
|
|
|
|
|
|
|
|
{% endfor %}
|
|
|
|
|
2012-11-09 21:16:14 +01:00
|
|
|
<script type="text/javascript" src="/static/third/sorttable/sorttable.js"></script>
|
|
|
|
<link href='{{ static_hidden }}styles/activity.css?dummy_time={% now "U" %}' rel='stylesheet'>
|
|
|
|
|
2012-11-09 00:09:58 +01:00
|
|
|
{% endblock %}
|