2017-04-18 20:09:07 +01:00
|
|
|
- content_for :page_title do
|
|
|
|
= t('admin.instances.title')
|
|
|
|
|
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
|
|
|
|
%li= filter_link_to t('admin.instances.moderation.limited'), limited: '1'
|
2017-09-13 11:30:07 +01:00
|
|
|
|
2019-01-08 12:39:49 +00: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 11:30:07 +01:00
|
|
|
|
2019-02-18 13:59:19 +00: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 13:01:22 +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/
|
|
|
|
|
|
|
|
- @instances.each do |instance|
|
|
|
|
.directory__tag
|
|
|
|
= link_to admin_instance_path(instance) do
|
|
|
|
%h4
|
|
|
|
= instance.domain
|
|
|
|
%small
|
|
|
|
- if instance.domain_block
|
2019-06-21 23:39:09 +01:00
|
|
|
- first_item = true
|
2019-01-08 12:39:49 +00:00
|
|
|
- if !instance.domain_block.noop?
|
|
|
|
= t("admin.domain_blocks.severity.#{instance.domain_block.severity}")
|
2019-06-21 23:39:09 +01:00
|
|
|
- first_item = false
|
2019-01-08 12:39:49 +00:00
|
|
|
- if instance.domain_block.reject_media?
|
2019-06-21 23:39:09 +01:00
|
|
|
- unless first_item
|
|
|
|
•
|
2019-01-08 12:39:49 +00:00
|
|
|
= t('admin.domain_blocks.rejecting_media')
|
2019-06-21 23:39:09 +01:00
|
|
|
- first_item = false
|
2019-01-08 12:39:49 +00:00
|
|
|
- if instance.domain_block.reject_reports?
|
2019-06-21 23:39:09 +01:00
|
|
|
- unless first_item
|
|
|
|
•
|
2019-01-08 12:39:49 +00:00
|
|
|
= t('admin.domain_blocks.rejecting_reports')
|
2019-06-21 23:39:09 +01:00
|
|
|
- else
|
|
|
|
= t('admin.accounts.no_limits_imposed')
|
|
|
|
- if instance.countable?
|
|
|
|
.trends__item__current{ title: t('admin.instances.known_accounts', count: instance.accounts_count) }= number_to_human instance.accounts_count, strip_insignificant_zeros: true
|
2017-05-31 19:38:44 +01:00
|
|
|
= paginate paginated_instances
|