20 lines
932 B
HTML
20 lines
932 B
HTML
<!-- retoor <retoor@molodetz.nl> -->
|
|
{% extends "admin/base_admin.html" %}
|
|
{% block admin_content %}
|
|
<h1>Statistics</h1>
|
|
<div class="tabs" role="tablist" data-tabs>
|
|
<button type="button" class="active" data-tab="paths">Paths</button>
|
|
<button type="button" data-tab="days">Per day</button>
|
|
</div>
|
|
<section data-panel="paths">
|
|
<table class="admin-table"><thead><tr><th>Path</th><th>Hits</th></tr></thead><tbody>
|
|
{% for row in top_paths %}<tr><td>{{ row.path }}</td><td>{{ row.hits }}</td></tr>{% else %}<tr><td colspan="2" class="muted">No data yet.</td></tr>{% endfor %}
|
|
</tbody></table>
|
|
</section>
|
|
<section data-panel="days" hidden>
|
|
<table class="admin-table"><thead><tr><th>Day</th><th>Hits</th></tr></thead><tbody>
|
|
{% for row in daily %}<tr><td>{{ format_date(row.day) }}</td><td>{{ row.hits }}</td></tr>{% else %}<tr><td colspan="2" class="muted">No data yet.</td></tr>{% endfor %}
|
|
</tbody></table>
|
|
</section>
|
|
{% endblock %}
|