zulip/templates/zephyr/activity.html

45 lines
1.3 KiB
HTML
Raw Normal View History

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