mirror of
https://github.com/whippyshou/mastodon
synced 2024-12-12 21:58:59 +09:00
7cb34b32f8
* Add management of delivery availavility in Federation settings * fix translate * Remove useless object creation * Fix DeepSource issue * Add shortcut for all * Fix DeepSource(skipcq) * Change 'remove' to 'clear' * Fix style * Change class method name (exhausted_deliveries_key_by)
60 lines
2.0 KiB
Plaintext
60 lines
2.0 KiB
Plaintext
- 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.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')
|
|
|
|
- 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
|