zulip/templates/analytics/ad_hoc_query.html

34 lines
924 B
HTML

<h3>{{ data.title }} {% if data.stats_link %}{{ data.stats_link }}{% endif %}</h3>
{% if data.title == "Remote servers" %}
{% include "analytics/remote_activity_key.html" %}
{% endif %}
{{ data.rows|length}} rows
<table class="table sortable table-striped table-bordered analytics-table">
<thead class="activity-head">
<tr>
{% for col in data.cols %}
<th>{{ col }}</th>
{% endfor %}
</tr>
</thead>
<tbody>
{% for row in data.rows %}
<tr {% if row.row_class %}class="{{ row.row_class }}"{% endif %}>
{% for field in row.cells %}
<td sortable>{{ field }}</td>
{% endfor %}
</tr>
{% endfor %}
</tbody>
{% if data.totals %}
<tfoot class="activity-foot">
{% for total in data.totals %}
<td>{{ total }}</td>
{% endfor %}
</tfoot>
{% endif %}
</table>