_instance.html.haml 680 B

123456789101112131415
  1. .directory__tag
  2. = link_to admin_instance_path(instance) do
  3. %h4
  4. = fa_icon 'warning fw', title: t('admin.instances.availability.warning') if instance.failing?
  5. = instance.domain
  6. %small
  7. - if instance.domain_block
  8. = instance.domain_block.policies.map { |policy| t(policy, scope: 'admin.instances.content_policies.policies') }.join(' · ')
  9. - elsif instance.domain_allow
  10. = t('admin.accounts.whitelisted')
  11. - else
  12. = t('admin.accounts.no_limits_imposed')
  13. .trends__item__current{ title: t('admin.instances.known_accounts', count: instance.accounts_count) }= friendly_number_to_human instance.accounts_count