zulip/templates/corporate/activity/activity_table.html
Lauryn Menard efd0d689fc templates: Move activity templates to /templates/corporate/activity.
Also, renames `ad_hoc_query.html` to `activity_table.html`,
`realm_summary_table.html` to `installation_activity_table.html`,
and `activity_details_template.html` to `activity.html`.

Removes the style attribute in the installation activity template
and uses a CSS class, "installation-activity-header", to center the
h3 and p tags instead. This removes an exception from the custom
lint check.
2024-01-30 10:06:48 -08:00

34 lines
933 B
HTML

<h3>{{ data.title }} {% if data.stats_link %}{{ data.stats_link }}{% endif %}</h3>
{% if data.title == "Remote servers" %}
{% include "corporate/activity/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>