mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
adding divs around the activities table so it wont over flow the page
This commit is contained in:
parent
929aaaee1d
commit
675020a22a
1 changed files with 34 additions and 32 deletions
|
@ -22,40 +22,42 @@
|
||||||
<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')) }}">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='in') }}">In</a> |
|
||||||
<a href="{{ url_for('admin.admin_activities', result=request.args.get('result'), direction='out') }}">Out</a>
|
<a href="{{ url_for('admin.admin_activities', result=request.args.get('result'), direction='out') }}">Out</a>
|
||||||
<table class="table">
|
<div>
|
||||||
<tr>
|
<table class="table">
|
||||||
<th>When</th>
|
|
||||||
<th>Direction</th>
|
|
||||||
<th>ID</th>
|
|
||||||
<th>Type</th>
|
|
||||||
<th>Result</th>
|
|
||||||
<th>Message</th>
|
|
||||||
<th>JSON</th>
|
|
||||||
</tr>
|
|
||||||
{% for activity in activities.items %}
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ arrow.get(activity.created_at).humanize(locale=locale) }}</td>
|
<th>When</th>
|
||||||
<td>{{ activity.direction }}</td>
|
<th>Direction</th>
|
||||||
<td>{{ activity.activity_id }}</td>
|
<th>ID</th>
|
||||||
<td>{{ activity.activity_type if activity.activity_type else '' }}</td>
|
<th>Type</th>
|
||||||
{% if activity.result == 'success' %}
|
<th>Result</th>
|
||||||
<td><span style="color: green;">{{ activity.result }}</span></td>
|
<th>Message</th>
|
||||||
{% elif activity.result == 'ignored' %}
|
<th>JSON</th>
|
||||||
<td><span style="color: orange;">{{ activity.result }}</span></td>
|
|
||||||
{% else %}
|
|
||||||
<td><span style="color: red;">{{ activity.result }}</span></td>
|
|
||||||
{% endif %}
|
|
||||||
<td>{{ activity.exception_message if activity.exception_message else '' }}</td>
|
|
||||||
<td>
|
|
||||||
{% if activity.activity_json is none %}
|
|
||||||
None
|
|
||||||
{% else %}
|
|
||||||
<a href="{{ url_for('admin.activity_json', activity_id=activity.id) }}">View</a>
|
|
||||||
{% endif %}
|
|
||||||
</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% for activity in activities.items %}
|
||||||
</table>
|
<tr>
|
||||||
|
<td>{{ arrow.get(activity.created_at).humanize(locale=locale) }}</td>
|
||||||
|
<td>{{ activity.direction }}</td>
|
||||||
|
<td>{{ activity.activity_id }}</td>
|
||||||
|
<td>{{ activity.activity_type if activity.activity_type else '' }}</td>
|
||||||
|
{% if activity.result == 'success' %}
|
||||||
|
<td><span style="color: green;">{{ activity.result }}</span></td>
|
||||||
|
{% elif activity.result == 'ignored' %}
|
||||||
|
<td><span style="color: orange;">{{ activity.result }}</span></td>
|
||||||
|
{% else %}
|
||||||
|
<td><span style="color: red;">{{ activity.result }}</span></td>
|
||||||
|
{% endif %}
|
||||||
|
<td>{{ activity.exception_message if activity.exception_message else '' }}</td>
|
||||||
|
<td>
|
||||||
|
{% if activity.activity_json is none %}
|
||||||
|
None
|
||||||
|
{% else %}
|
||||||
|
<a href="{{ url_for('admin.activity_json', activity_id=activity.id) }}">View</a>
|
||||||
|
{% endif %}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
{% endfor %}
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
<nav aria-label="Pagination" class="mt-4" role="navigation">
|
<nav aria-label="Pagination" class="mt-4" role="navigation">
|
||||||
{% if prev_url %}
|
{% if prev_url %}
|
||||||
<a href="{{ prev_url }}" class="btn btn-primary" rel="nofollow">
|
<a href="{{ prev_url }}" class="btn btn-primary" rel="nofollow">
|
||||||
|
|
Loading…
Add table
Reference in a new issue