2012-11-09 00:09:58 +01:00
|
|
|
{% extends "zephyr/base.html" %}
|
|
|
|
|
|
|
|
{# User Activity. #}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
|
2012-12-04 22:14:44 +01:00
|
|
|
{% for name, activity in data.iteritems %}
|
2012-11-09 00:09:58 +01:00
|
|
|
|
|
|
|
<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-12-04 22:14:44 +01:00
|
|
|
{% if activity.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-12-04 22:14:44 +01:00
|
|
|
{% for email, row in activity.rows.iteritems %}
|
2012-11-09 00:09:58 +01:00
|
|
|
<tr>
|
2012-12-04 22:14:44 +01:00
|
|
|
<td><strong>{{ email }}</strong></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-12-04 22:14:44 +01:00
|
|
|
{% if activity.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 %}
|