further admin instance page adjustments

This commit is contained in:
Alan Roberts 2024-09-04 22:45:17 -04:00
parent d0a9d04e0a
commit 959d5a386a
2 changed files with 3 additions and 4 deletions

View file

@ -974,6 +974,9 @@ def admin_instances():
instances = Instance.query.order_by(Instance.domain)
if search:
instances = instances.filter(Instance.domain.ilike(f"%{search}%"))
# Pagination
instances = instances.paginate(page=page,
per_page=250 if current_user.is_authenticated and not low_bandwidth else 50,

View file

@ -26,7 +26,6 @@
<th title="{{ _('When we successfully sent them an Activity') }}">Sent</th>
<th title="{{ _('How many times we failed to send (reset to 0 after every successful send)') }}">Failed</th>
<th title="{{ _('Instance Status - Online/Dormant/Gone Forever') }}">Status</th>
<th>Actions</th>
</tr>
{% for instance in instances.items %}
<tr>
@ -47,9 +46,6 @@
{% else %}
<td>Online</td>
{% endif %}
<!-- <td><a href="{{ url_for('admin.admin_community_edit', community_id=community.id) }}">Edit</a> | -->
<!-- <a href="{{ url_for('admin.admin_community_delete', community_id=community.id) }}" class="confirm_first">Delete</a> -->
<!-- </td> -->
</tr>
{% endfor %}
</table>