mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-02-03 00:31:25 -08:00
further admin instance page adjustments
This commit is contained in:
parent
d0a9d04e0a
commit
959d5a386a
2 changed files with 3 additions and 4 deletions
|
@ -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,
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue