adding divs around the activities table so it wont over flow the page

This commit is contained in:
JollyDevelopment 2025-01-13 15:50:22 -05:00
parent 929aaaee1d
commit 675020a22a

View file

@ -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'), direction='in') }}">In</a> |
<a href="{{ url_for('admin.admin_activities', result=request.args.get('result'), direction='out') }}">Out</a>
<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>
{% for activity in activities.items %}
<div>
<table class="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>
<th>When</th>
<th>Direction</th>
<th>ID</th>
<th>Type</th>
<th>Result</th>
<th>Message</th>
<th>JSON</th>
</tr>
{% endfor %}
</table>
{% for activity in activities.items %}
<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">
{% if prev_url %}
<a href="{{ prev_url }}" class="btn btn-primary" rel="nofollow">