2017-04-18 12:09:07 -07:00
|
|
|
- content_for :page_title do
|
|
|
|
= t('admin.instances.title')
|
|
|
|
|
2020-06-03 11:19:14 -07:00
|
|
|
- content_for :heading_actions do
|
|
|
|
- if whitelist_mode?
|
|
|
|
= link_to t('admin.domain_allows.add_new'), new_admin_domain_allow_path, class: 'button'
|
|
|
|
- else
|
|
|
|
= link_to t('admin.domain_blocks.add_new'), new_admin_domain_block_path, class: 'button'
|
|
|
|
|
2019-01-08 04:39:49 -08: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 02:10:46 -07:00
|
|
|
|
|
|
|
- unless whitelist_mode?
|
|
|
|
%li= filter_link_to t('admin.instances.moderation.limited'), limited: '1'
|
2017-09-13 03:30:07 -07:00
|
|
|
|
2021-05-05 14:39:02 -07:00
|
|
|
.filter-subset
|
|
|
|
%strong= t('admin.instances.delivery.title')
|
|
|
|
%ul
|
|
|
|
%li= filter_link_to t('admin.instances.delivery.all'), warning: nil, unavailable: nil
|
|
|
|
%li= filter_link_to t('admin.instances.delivery.warning'), warning: '1', unavailable: nil
|
|
|
|
%li= filter_link_to t('admin.instances.delivery.unavailable'), warning: nil, unavailable: '1'
|
|
|
|
|
|
|
|
.back-link
|
|
|
|
= link_to admin_instances_path() do
|
|
|
|
%i.fa.fa-chevron-left.fa-fw
|
|
|
|
= t('admin.instances.back_to_all')
|
|
|
|
= link_to admin_instances_path(limited: 1) do
|
|
|
|
%i.fa.fa-chevron-left.fa-fw
|
|
|
|
= t('admin.instances.back_to_limited')
|
|
|
|
= link_to admin_instances_path(warning: 1) do
|
|
|
|
%i.fa.fa-chevron-left.fa-fw
|
|
|
|
= t('admin.instances.back_to_warning')
|
|
|
|
|
2019-07-30 02:10:46 -07:00
|
|
|
- unless whitelist_mode?
|
|
|
|
= form_tag admin_instances_url, method: 'GET', class: 'simple_form' do
|
|
|
|
.fields-group
|
2020-01-20 06:55:03 -08:00
|
|
|
- InstanceFilter::KEYS.each do |key|
|
|
|
|
= hidden_field_tag key, params[key] if params[key].present?
|
2019-02-18 05:59:19 -08:00
|
|
|
|
2019-07-30 02:10:46 -07:00
|
|
|
- %i(by_domain).each do |key|
|
|
|
|
.input.string.optional
|
|
|
|
= text_field_tag key, params[key], class: 'string optional', placeholder: I18n.t("admin.instances.#{key}")
|
2019-02-18 05:59:19 -08:00
|
|
|
|
2019-07-30 02:10:46 -07:00
|
|
|
.actions
|
2020-06-25 15:36:30 -07:00
|
|
|
%button.button= t('admin.accounts.search')
|
2019-07-30 02:10:46 -07:00
|
|
|
= link_to t('admin.accounts.reset'), admin_instances_path, class: 'button negative'
|
2019-02-18 05:59:19 -08:00
|
|
|
|
2019-01-08 04:39:49 -08:00
|
|
|
%hr.spacer/
|
|
|
|
|
2020-12-14 00:06:34 -08:00
|
|
|
- if @instances.empty?
|
|
|
|
%div.muted-hint.center-text
|
|
|
|
= t 'admin.instances.empty'
|
|
|
|
- else
|
2021-03-06 22:06:56 -08:00
|
|
|
= render partial: 'instance', collection: @instances
|
2020-12-14 00:06:34 -08:00
|
|
|
|
|
|
|
= paginate @instances
|