mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-27 09:21:38 +01:00
bd53dd5210
* Change design of federation pages in admin UI * Fix query performance in instance media attachments measure * Fix reblogs being included in instance languages dimension
48 lines
1.6 KiB
Text
48 lines
1.6 KiB
Text
- content_for :page_title do
|
|
= t('admin.instances.title')
|
|
|
|
- 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'
|
|
|
|
.filters
|
|
.filter-subset
|
|
%strong= t('admin.instances.moderation.title')
|
|
%ul
|
|
%li= filter_link_to t('admin.instances.moderation.all'), limited: nil
|
|
|
|
- unless whitelist_mode?
|
|
%li= filter_link_to t('admin.instances.moderation.limited'), limited: '1'
|
|
|
|
.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 whitelist_mode?
|
|
= 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?
|
|
|
|
- %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.button= t('admin.accounts.search')
|
|
= link_to t('admin.accounts.reset'), admin_instances_path, class: 'button negative'
|
|
|
|
%hr.spacer/
|
|
|
|
- if @instances.empty?
|
|
%div.muted-hint.center-text
|
|
= t 'admin.instances.empty'
|
|
- else
|
|
= render partial: 'instance', collection: @instances
|
|
|
|
= paginate @instances
|