about summary refs log tree commit diff
path: root/app/views/admin/instances/_instance.html.haml
blob: 93f9bd4181610cb91a2426a9409aa80dddbed802 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
.directory__tag
  = link_to admin_instance_path(instance) do
    %h4
      = fa_icon 'warning fw', title: t('admin.instances.availability.warning') if instance.failing?
      = instance.domain

      %small
        - if instance.domain_block
          = instance.domain_block.policies.map { |policy| t(policy, scope: 'admin.instances.content_policies.policies') }.join(' • ')
        - elsif instance.domain_allow
          = t('admin.accounts.whitelisted')
        - else
          = t('admin.accounts.no_limits_imposed')

    .trends__item__current{ title: t('admin.instances.known_accounts', count: instance.accounts_count) }= friendly_number_to_human instance.accounts_count