Files

53 lines
1.5 KiB
HTML
Raw Permalink Normal View History

{% extends "withnav_template.html" %}
2019-10-18 09:47:44 +01:00
{% from "components/page-header.html" import page_header %}
{% from "components/table.html" import list_table, field %}
2019-10-21 13:16:48 +01:00
{% from "components/pill.html" import pill %}
2017-02-13 10:45:15 +00:00
{% block service_page_title %}
2019-10-21 13:16:48 +01:00
Audit events
{% endblock %}
{% block maincolumn_content %}
2019-10-21 13:16:48 +01:00
{{ page_header("Audit events") }}
{% if show_navigation %}
2025-10-06 09:38:54 -04:00
<div class="margin-bottom-3">
{{ pill(
[
('All', None, url_for('main.history', service_id=current_service.id), None),
('Service settings', 'service', url_for('main.history', service_id=current_service.id, selected='service'), None),
('API keys', 'api', url_for('main.history', service_id=current_service.id, selected='api'), None),
],
request.args.get('selected'),
show_count=False
) }}
</div>
{% endif %}
2019-10-18 16:43:52 +01:00
{% for day, events in days %}
2025-10-06 09:38:54 -04:00
<h2 class="font-heading-md top-gutter">
2019-10-18 16:43:52 +01:00
{{ events[0].time|format_date_human|title }}
</h2>
2025-10-06 09:38:54 -04:00
<ul class="margin-bottom-3">
2019-10-18 16:43:52 +01:00
{% for event in events %}
<li class="history-list-item">
2023-08-23 16:18:25 -04:00
<div class="grid-row">
<div class="grid-col-4">
2019-10-18 16:43:52 +01:00
<div class="history-list-user">
{{ user_getter(event.user_id) }}
2019-10-18 16:43:52 +01:00
</div>
<div class="history-list-time">
2023-06-26 14:07:28 -07:00
{{ event.time | format_time_24h }}
2019-10-18 16:43:52 +01:00
</div>
</div>
2023-08-23 16:18:25 -04:00
<div class="grid-col-8">
2019-10-18 16:43:52 +01:00
{{ event }}
</div>
</li>
{% endfor%}
</ul>
{% endfor %}
{% endblock %}