43 lines
1.0 KiB
HTML
43 lines
1.0 KiB
HTML
{% extends "base.html" %}
|
|
{% load heasarc_templates %}
|
|
|
|
{% block header %}{% endblock %}
|
|
{% block precontent %}{% endblock %}
|
|
|
|
{% block content %}
|
|
<p>
|
|
<strong>Filter by group:</strong>
|
|
{% for group in groups %}
|
|
<a href="/stats/{{ group.pk }}/group">{{ group }}</a> |
|
|
{% endfor %}
|
|
<a href="/stats">show all</a>
|
|
</p>
|
|
|
|
{% if data %}
|
|
|
|
<table id="srgcatstats" class="table table-striped table-bordered table-sm" cellspacing="0" width="100%">
|
|
<thead>
|
|
<tr>
|
|
<th scope="col">User</th>
|
|
<th scope="col">Group</th>
|
|
<th scope="col">URL name</th>
|
|
<th scope="col">URL path</th>
|
|
<th scope="col">IP</th>
|
|
<th scope="col">Date</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for d in data %}
|
|
<tr>
|
|
<td>{{ d.user }}</td>
|
|
<td><a href="/groups/{{ d.group.pk }}/info">{{ d.group }}</a></td>
|
|
<td><a href="{{ d.path_info }}">{{ d.url_name }}</a></td>
|
|
<td>{{ d.path_info|truncatechars:25 }}</td>
|
|
<td>{{ d.ip_address }}</td>
|
|
<td>{{ d.created|date:"d M Y H:i" }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
{% endif %}
|
|
{% endblock %}
|