2024-02-07 17:31:12 +13:00
|
|
|
{% if theme() and file_exists('app/templates/themes/' + theme() + '/base.html') %}
|
|
|
|
{% extends 'themes/' + theme() + '/base.html' %}
|
|
|
|
{% else %}
|
|
|
|
{% extends "base.html" %}
|
|
|
|
{% endif %} %}
|
2023-11-24 22:32:46 +13:00
|
|
|
{% from 'bootstrap/form.html' import render_form %}
|
2024-04-14 20:05:40 +12:00
|
|
|
{% set active_child = 'admin_activities' %}
|
2023-11-24 22:32:46 +13:00
|
|
|
|
|
|
|
{% block app_content %}
|
2023-12-17 00:12:49 +13:00
|
|
|
<div class="row">
|
|
|
|
<div class="col">
|
2024-04-14 20:05:40 +12:00
|
|
|
<h1>{{ _('Activities') }}</h1>
|
2024-06-07 15:34:47 +01:00
|
|
|
Result Filter:
|
2024-08-19 19:36:39 +00:00
|
|
|
<a href="{{ url_for('admin.admin_activities', direction=request.args.get('direction')) }}">All</a> |
|
|
|
|
<a href="{{ url_for('admin.admin_activities', result='failure', direction=request.args.get('direction')) }}">Failure</a> |
|
|
|
|
<a href="{{ url_for('admin.admin_activities', result='success', direction=request.args.get('direction')) }}">Success</a> |
|
|
|
|
<a href="{{ url_for('admin.admin_activities', result='ignored', direction=request.args.get('direction')) }}">Ignored</a> |
|
|
|
|
<a href="{{ url_for('admin.admin_activities', result='processing', direction=request.args.get('direction')) }}">Processing</a> ---
|
|
|
|
Direction Filter:
|
|
|
|
<a href="{{ url_for('admin.admin_activities', result=request.args.get('result')) }}">Both</a> |
|
|
|
|
<a href="{{ url_for('admin.admin_activities', result=request.args.get('result'), direction='in') }}">In</a> |
|
|
|
|
<a href="{{ url_for('admin.admin_activities', result=request.args.get('result'), direction='out') }}">Out</a>
|
2023-11-24 22:32:46 +13:00
|
|
|
<table class="table">
|
|
|
|
<tr>
|
|
|
|
<th>When</th>
|
|
|
|
<th>Direction</th>
|
|
|
|
<th>ID</th>
|
|
|
|
<th>Type</th>
|
|
|
|
<th>Result</th>
|
|
|
|
<th>Message</th>
|
|
|
|
<th>JSON</th>
|
|
|
|
</tr>
|
2024-02-06 17:40:03 +13:00
|
|
|
{% for activity in activities.items %}
|
2023-11-24 22:32:46 +13:00
|
|
|
<tr>
|
2024-08-23 11:14:47 +12:00
|
|
|
<td>{{ arrow.get(activity.created_at).humanize(locale=locale) }}</td>
|
2023-11-24 22:32:46 +13:00
|
|
|
<td>{{ activity.direction }}</td>
|
|
|
|
<td>{{ activity.activity_id }}</td>
|
2023-12-22 15:34:45 +13:00
|
|
|
<td>{{ activity.activity_type if activity.activity_type else '' }}</td>
|
|
|
|
{% if activity.result == 'success' %}
|
|
|
|
<td><span style="color: green;">{{ activity.result }}</span></td>
|
2023-12-23 11:30:27 +13:00
|
|
|
{% elif activity.result == 'ignored' %}
|
|
|
|
<td><span style="color: orange;">{{ activity.result }}</span></td>
|
2023-12-22 15:34:45 +13:00
|
|
|
{% else %}
|
|
|
|
<td><span style="color: red;">{{ activity.result }}</span></td>
|
|
|
|
{% endif %}
|
|
|
|
<td>{{ activity.exception_message if activity.exception_message else '' }}</td>
|
2024-03-14 10:08:54 +00:00
|
|
|
<td>
|
|
|
|
{% if activity.activity_json is none %}
|
|
|
|
None
|
|
|
|
{% else %}
|
|
|
|
<a href="{{ url_for('admin.activity_json', activity_id=activity.id) }}">View</a>
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
2023-11-24 22:32:46 +13:00
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
2024-01-23 19:17:05 +13:00
|
|
|
<nav aria-label="Pagination" class="mt-4" role="navigation">
|
2023-12-23 11:30:27 +13:00
|
|
|
{% if prev_url %}
|
2024-01-03 20:14:39 +13:00
|
|
|
<a href="{{ prev_url }}" class="btn btn-primary" rel="nofollow">
|
2023-12-23 11:30:27 +13:00
|
|
|
<span aria-hidden="true">←</span> {{ _('Previous page') }}
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
{% if next_url %}
|
|
|
|
<a href="{{ next_url }}" class="btn btn-primary">
|
|
|
|
{{ _('Next page') }} <span aria-hidden="true">→</span>
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
</nav>
|
2023-11-24 22:32:46 +13:00
|
|
|
</div>
|
|
|
|
</div>
|
2024-04-14 20:05:40 +12:00
|
|
|
<hr />
|
|
|
|
<div class="row">
|
|
|
|
<div class="col">
|
|
|
|
{% include 'admin/_nav.html' %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<hr />
|
2024-03-14 10:08:54 +00:00
|
|
|
{% endblock %}
|