about summary refs log tree commit diff
path: root/app/views/admin/instances/index.html.haml
blob: ce35b5db4751ade39b32b4e7f17798b9cd611710 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
- content_for :page_title do
  = t('admin.instances.title')

.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'

  %div{ style: 'flex: 1 1 auto; text-align: right' }
    = link_to t('admin.domain_blocks.add_new'), new_admin_domain_block_path, class: 'button'

%hr.spacer/

- @instances.each do |instance|
  .directory__tag
    = link_to admin_instance_path(instance) do
      %h4
        = instance.domain
        %small
          = t('admin.instances.known_accounts', count: instance.accounts_count)

          - 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'

= paginate paginated_instances