2017-04-18 21:09:07 +02:00
|
|
|
- content_for :page_title do
|
|
|
|
= t('admin.instances.title')
|
|
|
|
|
2019-01-08 13:39:49 +01:00
|
|
|
.filters
|
|
|
|
.filter-subset
|
|
|
|
%strong= t('admin.instances.moderation.title')
|
|
|
|
%ul
|
|
|
|
%li= filter_link_to t('admin.instances.moderation.all'), limited: nil
|
|
|
|
%li= filter_link_to t('admin.instances.moderation.limited'), limited: '1'
|
2017-09-13 12:30:07 +02:00
|
|
|
|
2019-01-08 13:39:49 +01:00
|
|
|
%div{ style: 'flex: 1 1 auto; text-align: right' }
|
|
|
|
= link_to t('admin.domain_blocks.add_new'), new_admin_domain_block_path, class: 'button'
|
2017-09-13 12:30:07 +02:00
|
|
|
|
2019-02-18 14:59:19 +01:00
|
|
|
= form_tag admin_instances_url, method: 'GET', class: 'simple_form' do
|
|
|
|
.fields-group
|
|
|
|
- Admin::FilterHelper::INSTANCES_FILTERS.each do |key|
|
|
|
|
- if params[key].present?
|
|
|
|
= hidden_field_tag key, params[key]
|
|
|
|
|
|
|
|
- %i(by_domain).each do |key|
|
|
|
|
.input.string.optional
|
|
|
|
= text_field_tag key, params[key], class: 'string optional', placeholder: I18n.t("admin.instances.#{key}")
|
|
|
|
|
|
|
|
.actions
|
|
|
|
%button= t('admin.accounts.search')
|
2019-02-19 14:01:22 +01:00
|
|
|
= link_to t('admin.accounts.reset'), admin_instances_path, class: 'button negative'
|
2019-02-18 14:59:19 +01:00
|
|
|
|
2019-01-08 13:39:49 +01:00
|
|
|
%hr.spacer/
|
|
|
|
|
|
|
|
- @instances.each do |instance|
|
|
|
|
.directory__tag
|
|
|
|
= link_to admin_instance_path(instance) do
|
|
|
|
%h4
|
|
|
|
= instance.domain
|
|
|
|
%small
|
2019-03-26 00:36:35 +01:00
|
|
|
= t('admin.instances.known_accounts', count: instance.cached_accounts_count)
|
2019-01-08 13:39:49 +01:00
|
|
|
|
|
|
|
- if instance.domain_block
|
|
|
|
- if !instance.domain_block.noop?
|
|
|
|
•
|
|
|
|
= t("admin.domain_blocks.severity.#{instance.domain_block.severity}")
|
|
|
|
- if instance.domain_block.reject_media?
|
|
|
|
•
|
|
|
|
= t('admin.domain_blocks.rejecting_media')
|
|
|
|
- if instance.domain_block.reject_reports?
|
|
|
|
•
|
|
|
|
= t('admin.domain_blocks.rejecting_reports')
|
|
|
|
|
|
|
|
.avatar-stack
|
|
|
|
- instance.cached_sample_accounts.each do |account|
|
|
|
|
= image_tag current_account&.user&.setting_auto_play_gif ? account.avatar_original_url : account.avatar_static_url, width: 48, height: 48, alt: '', class: 'account__avatar'
|
2017-04-18 21:09:07 +02:00
|
|
|
|
2017-05-31 20:38:44 +02:00
|
|
|
= paginate paginated_instances
|