30 lines
1.1 KiB
HTML
30 lines
1.1 KiB
HTML
|
|
{% if request_events %}
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>Timestamp</th>
|
|
<th>User</th>
|
|
<th>URL</th> {# Changed from Path to URL based on model #}
|
|
<th>Method</th>
|
|
<th>IP Address</th>
|
|
{# No status_code in RequestEvent model #}
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for event in request_events %}
|
|
<tr>
|
|
<td>{{ event.datetime }}</td> {# Corrected field name #}
|
|
<td>{{ event.user.username|default:"Anonymous" }}</td>
|
|
<td>{{ event.url }}</td> {# Corrected field name #}
|
|
<td>{{ event.method }}</td>
|
|
<td>{{ event.remote_ip }}</td> {# Corrected field name #}
|
|
{# Removed status_code as it's not in the model #}
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
{% else %}
|
|
<p>No request audit events found.</p>
|
|
{% endif %}
|