This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
mastodon/app/views/admin/instances/index.html.haml

53 lines
2.1 KiB
Plaintext
Raw Normal View History

- content_for :page_title do
= t('admin.instances.title')
- content_for :heading_actions do
- if limited_federation_mode?
= link_to t('admin.domain_allows.add_new'), new_admin_domain_allow_path, class: 'button', id: 'add-instance-button'
= 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'
- else
= link_to t('admin.domain_blocks.add_new'), new_admin_domain_block_path, class: 'button', id: 'add-instance-button'
= 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'
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 limited_federation_mode?
2019-07-30 02:10:46 -07:00
%li= filter_link_to t('admin.instances.moderation.limited'), limited: '1'
2017-09-13 03:30:07 -07:00
.filter-subset
%strong= t('admin.instances.availability.title')
%ul
%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'
- unless limited_federation_mode?
2019-07-30 02:10:46 -07:00
= form_tag admin_instances_url, method: 'GET', class: 'simple_form' do
.fields-group
- InstanceFilter::KEYS.each do |key|
= hidden_field_tag key, params[key] if params[key].present?
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-07-30 02:10:46 -07:00
.actions
%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-01-08 04:39:49 -08:00
%hr.spacer/
- if @instances.empty?
.muted-hint.center-text
= t 'admin.instances.empty'
- else
= render partial: 'instance', collection: @instances
= paginate @instances