1
0

show.html.haml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. - content_for :page_title do
  2. = @instance.domain
  3. .dashboard__counters
  4. %div
  5. %div
  6. .dashboard__counters__num= number_with_delimiter @following_count
  7. .dashboard__counters__label= t 'admin.instances.total_followed_by_them'
  8. %div
  9. %div
  10. .dashboard__counters__num= number_with_delimiter @followers_count
  11. .dashboard__counters__label= t 'admin.instances.total_followed_by_us'
  12. %div
  13. %div
  14. .dashboard__counters__num= number_to_human_size @media_storage
  15. .dashboard__counters__label= t 'admin.instances.total_storage'
  16. %div
  17. %div
  18. .dashboard__counters__num= number_with_delimiter @blocks_count
  19. .dashboard__counters__label= t 'admin.instances.total_blocked_by_us'
  20. %div
  21. %div
  22. .dashboard__counters__num= number_with_delimiter @reports_count
  23. .dashboard__counters__label= t 'admin.instances.total_reported'
  24. %div
  25. %div
  26. .dashboard__counters__num
  27. - if @available
  28. = fa_icon 'check'
  29. - else
  30. = fa_icon 'times'
  31. .dashboard__counters__label= t 'admin.instances.delivery_available'
  32. %hr.spacer/
  33. %div{ style: 'overflow: hidden' }
  34. %div{ style: 'float: left' }
  35. = link_to t('admin.accounts.title'), admin_accounts_path(remote: '1', by_domain: @instance.domain), class: 'button'
  36. %div{ style: 'float: right' }
  37. - if @domain_block
  38. = link_to t('admin.domain_blocks.undo'), admin_domain_block_path(@domain_block), class: 'button'
  39. - else
  40. = link_to t('admin.domain_blocks.add_new'), new_admin_domain_block_path(_domain: @instance.domain), class: 'button'