where i deviate from standard mastodon assets
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

index.html.haml 2.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. - unless whitelist_mode?
  9. %li= filter_link_to t('admin.instances.moderation.limited'), limited: '1'
  10. %div{ style: 'flex: 1 1 auto; text-align: right' }
  11. - if whitelist_mode?
  12. = link_to t('admin.domain_allows.add_new'), new_admin_domain_allow_path, class: 'button'
  13. - else
  14. = link_to t('admin.domain_blocks.add_new'), new_admin_domain_block_path, class: 'button'
  15. - unless whitelist_mode?
  16. = form_tag admin_instances_url, method: 'GET', class: 'simple_form' do
  17. .fields-group
  18. - InstanceFilter::KEYS.each do |key|
  19. = hidden_field_tag key, params[key] if params[key].present?
  20. - %i(by_domain).each do |key|
  21. .input.string.optional
  22. = text_field_tag key, params[key], class: 'string optional', placeholder: I18n.t("admin.instances.#{key}")
  23. .actions
  24. %button= t('admin.accounts.search')
  25. = link_to t('admin.accounts.reset'), admin_instances_path, class: 'button negative'
  26. %hr.spacer/
  27. - @instances.each do |instance|
  28. .directory__tag
  29. = link_to admin_instance_path(instance) do
  30. %h4
  31. = instance.domain
  32. %small
  33. - if instance.domain_block
  34. - first_item = true
  35. - if !instance.domain_block.noop?
  36. = t("admin.domain_blocks.severity.#{instance.domain_block.severity}")
  37. - first_item = false
  38. - unless instance.domain_block.suspend?
  39. - if instance.domain_block.reject_media?
  40. - unless first_item
  41. •
  42. = t('admin.domain_blocks.rejecting_media')
  43. - first_item = false
  44. - if instance.domain_block.reject_reports?
  45. - unless first_item
  46. •
  47. = t('admin.domain_blocks.rejecting_reports')
  48. - elsif whitelist_mode?
  49. = t('admin.accounts.whitelisted')
  50. - else
  51. = t('admin.accounts.no_limits_imposed')
  52. - if instance.countable?
  53. .trends__item__current{ title: t('admin.instances.known_accounts', count: instance.accounts_count) }= number_to_human instance.accounts_count, strip_insignificant_zeros: true
  54. = paginate paginated_instances