Files
notifications-admin/app/templates/views/temp-history.html
Chris Hill-Scott 9055a33dca Only show the filters if they will have an effect
If you never create any API keys we shouldn’t give you the option to see
API-related events – it will only confuse things.

And since there’s (currently) only one type of event left once you take
API key events out of the picture it doesn’t make sense to show the
filters at all.
2019-10-23 13:13:37 +01:00

53 lines
1.5 KiB
HTML

{% extends "withnav_template.html" %}
{% from "components/page-header.html" import page_header %}
{% from "components/table.html" import list_table, field %}
{% from "components/pill.html" import pill %}
{% block service_page_title %}
Audit events
{% endblock %}
{% block maincolumn_content %}
{{ page_header("Audit events") }}
{% if show_navigation %}
<div class="bottom-gutter">
{{ 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 %}
{% for day, events in days %}
<h2 class="heading-small top-gutter">
{{ events[0].time|format_date_human|title }}
</h2>
<ul class="bottom-gutter">
{% for event in events %}
<li class="history-list-item">
<div class="grid-row">
<div class="column-one-third">
<div class="history-list-user">
{{ event.user_id }}
</div>
<div class="history-list-time">
{{ event.time|format_time }}
</div>
</div>
<div class="column-two-thirds">
{{ event }}
</div>
</li>
{% endfor%}
</ul>
{% endfor %}
{% endblock %}