mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 11:26:56 -08:00
activitypub log for admins
This commit is contained in:
parent
1fc2ba631f
commit
46646590a9
2 changed files with 31 additions and 1 deletions
|
@ -28,14 +28,28 @@
|
||||||
<td>{{ activity.activity_type if activity.activity_type else '' }}</td>
|
<td>{{ activity.activity_type if activity.activity_type else '' }}</td>
|
||||||
{% if activity.result == 'success' %}
|
{% if activity.result == 'success' %}
|
||||||
<td><span style="color: green;">{{ activity.result }}</span></td>
|
<td><span style="color: green;">{{ activity.result }}</span></td>
|
||||||
|
{% elif activity.result == 'ignored' %}
|
||||||
|
<td><span style="color: orange;">{{ activity.result }}</span></td>
|
||||||
{% else %}
|
{% else %}
|
||||||
<td><span style="color: red;">{{ activity.result }}</span></td>
|
<td><span style="color: red;">{{ activity.result }}</span></td>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<td>{{ activity.exception_message if activity.exception_message else '' }}</td>
|
<td>{{ activity.exception_message if activity.exception_message else '' }}</td>
|
||||||
<td><pre> </pre></td>
|
<td><a href="{{ url_for('admin.activity_json', activity_id=activity.id) }}">View</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</table>
|
</table>
|
||||||
|
<nav aria-label="Pagination" class="mt-4">
|
||||||
|
{% if prev_url %}
|
||||||
|
<a href="{{ prev_url }}" class="btn btn-primary">
|
||||||
|
<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>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
16
app/templates/admin/activity_json.html
Normal file
16
app/templates/admin/activity_json.html
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
{% extends "base.html" %}
|
||||||
|
{% from 'bootstrap/form.html' import render_form %}
|
||||||
|
|
||||||
|
{% block app_content %}
|
||||||
|
<div class="row">
|
||||||
|
<div class="col">
|
||||||
|
{% include 'admin/_nav.html' %}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="col">
|
||||||
|
<code><pre>{{ activity_json_data | tojson(indent=2) }}</pre></code>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{% endblock %}
|
Loading…
Reference in a new issue