2017-04-18 19:09:07 +00:00
|
|
|
- content_for :page_title do
|
|
|
|
= t('admin.instances.title')
|
|
|
|
|
2020-06-03 18:19:14 +00:00
|
|
|
- content_for :heading_actions do
|
2023-08-02 17:32:48 +00:00
|
|
|
- if limited_federation_mode?
|
2022-04-28 22:24:44 +00:00
|
|
|
= link_to t('admin.domain_allows.add_new'), new_admin_domain_allow_path, class: 'button', id: 'add-instance-button'
|
2022-11-17 10:05:09 +00:00
|
|
|
= link_to t('admin.domain_allows.export'), export_admin_export_domain_allows_path(format: :csv), class: 'button'
|
|
|
|
= link_to t('admin.domain_allows.import'), new_admin_export_domain_allow_path, class: 'button'
|
2020-06-03 18:19:14 +00:00
|
|
|
- else
|
2022-04-28 22:24:44 +00:00
|
|
|
= link_to t('admin.domain_blocks.add_new'), new_admin_domain_block_path, class: 'button', id: 'add-instance-button'
|
2022-11-17 10:05:09 +00:00
|
|
|
= link_to t('admin.domain_blocks.export'), export_admin_export_domain_blocks_path(format: :csv), class: 'button'
|
|
|
|
= link_to t('admin.domain_blocks.import'), new_admin_export_domain_block_path, class: 'button'
|
2020-06-03 18:19:14 +00:00
|
|
|
|
2019-01-08 12:39:49 +00:00
|
|
|
.filters
|
|
|
|
.filter-subset
|
|
|
|
%strong= t('admin.instances.moderation.title')
|
|
|
|
%ul
|
|
|
|
%li= filter_link_to t('admin.instances.moderation.all'), limited: nil
|
2019-07-30 09:10:46 +00:00
|
|
|
|
2023-08-02 17:32:48 +00:00
|
|
|
- unless limited_federation_mode?
|
2019-07-30 09:10:46 +00:00
|
|
|
%li= filter_link_to t('admin.instances.moderation.limited'), limited: '1'
|
2017-09-13 10:30:07 +00:00
|
|
|
|
2021-05-05 21:39:02 +00:00
|
|
|
.filter-subset
|
2022-03-09 07:52:32 +00:00
|
|
|
%strong= t('admin.instances.availability.title')
|
2021-05-05 21:39:02 +00:00
|
|
|
%ul
|
2022-03-09 07:52:32 +00:00
|
|
|
%li= filter_link_to t('admin.instances.delivery.all'), availability: nil
|
|
|
|
%li= filter_link_to t('admin.instances.delivery.failing'), availability: 'failing'
|
|
|
|
%li= filter_link_to t('admin.instances.delivery.unavailable'), availability: 'unavailable'
|
2021-05-05 21:39:02 +00:00
|
|
|
|
2023-08-02 17:32:48 +00:00
|
|
|
- unless limited_federation_mode?
|
2024-06-14 09:49:10 +00:00
|
|
|
= form_with url: admin_instances_url, method: :get, class: :simple_form do |form|
|
2019-07-30 09:10:46 +00:00
|
|
|
.fields-group
|
2020-01-20 14:55:03 +00:00
|
|
|
- InstanceFilter::KEYS.each do |key|
|
2024-06-14 09:49:10 +00:00
|
|
|
= form.hidden_field key, value: params[key] if params[key].present?
|
2019-02-18 13:59:19 +00:00
|
|
|
|
2019-07-30 09:10:46 +00:00
|
|
|
- %i(by_domain).each do |key|
|
|
|
|
.input.string.optional
|
2024-06-14 09:49:10 +00:00
|
|
|
= form.text_field key,
|
|
|
|
value: params[key],
|
|
|
|
class: 'string optional',
|
|
|
|
placeholder: I18n.t("admin.instances.#{key}")
|
2019-02-18 13:59:19 +00:00
|
|
|
|
2019-07-30 09:10:46 +00:00
|
|
|
.actions
|
2020-06-25 22:36:30 +00:00
|
|
|
%button.button= t('admin.accounts.search')
|
2019-07-30 09:10:46 +00:00
|
|
|
= link_to t('admin.accounts.reset'), admin_instances_path, class: 'button negative'
|
2019-02-18 13:59:19 +00:00
|
|
|
|
2019-01-08 12:39:49 +00:00
|
|
|
%hr.spacer/
|
|
|
|
|
2020-12-14 08:06:34 +00:00
|
|
|
- if @instances.empty?
|
2023-03-15 03:15:36 +00:00
|
|
|
.muted-hint.center-text
|
2020-12-14 08:06:34 +00:00
|
|
|
= t 'admin.instances.empty'
|
|
|
|
- else
|
2021-03-07 06:06:56 +00:00
|
|
|
= render partial: 'instance', collection: @instances
|
2020-12-14 08:06:34 +00:00
|
|
|
|
|
|
|
= paginate @instances
|