You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.4 KiB

  1. - content_for :page_title do
  2. = t('admin.instances.title')
  3. .filters
  4. .filter-subset
  5. %strong= t('admin.instances.moderation.title')
  6. %ul
  7. %li= filter_link_to t('admin.instances.moderation.all'), limited: nil
  8. %li= filter_link_to t('admin.instances.moderation.limited'), limited: '1'
  9. %div{ style: 'flex: 1 1 auto; text-align: right' }
  10. = link_to t('admin.domain_blocks.add_new'), new_admin_domain_block_path, class: 'button'
  11. %hr.spacer/
  12. - @instances.each do |instance|
  13. .directory__tag
  14. = link_to admin_instance_path(instance) do
  15. %h4
  16. = instance.domain
  17. %small
  18. = t('admin.instances.known_accounts', count: instance.accounts_count)
  19. - if instance.domain_block
  20. - if !instance.domain_block.noop?
  21. •
  22. = t("admin.domain_blocks.severity.#{instance.domain_block.severity}")
  23. - if instance.domain_block.reject_media?
  24. •
  25. = t('admin.domain_blocks.rejecting_media')
  26. - if instance.domain_block.reject_reports?
  27. •
  28. = t('admin.domain_blocks.rejecting_reports')
  29. .avatar-stack
  30. - instance.cached_sample_accounts.each do |account|
  31. = 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'
  32. = paginate paginated_instances