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.

61 lines
2.5 KiB

  1. - content_for :page_title do
  2. = @instance.domain
  3. .dashboard__counters
  4. %div
  5. = link_to admin_accounts_path(remote: '1', by_domain: @instance.domain) do
  6. .dashboard__counters__num= number_with_delimiter @instance.accounts_count
  7. .dashboard__counters__label= t 'admin.accounts.title'
  8. %div
  9. = link_to admin_reports_path(by_target_domain: @instance.domain) do
  10. .dashboard__counters__num= number_with_delimiter @instance.reports_count
  11. .dashboard__counters__label= t 'admin.instances.total_reported'
  12. %div
  13. %div
  14. .dashboard__counters__num= number_to_human_size @instance.media_storage
  15. .dashboard__counters__label= t 'admin.instances.total_storage'
  16. %div
  17. %div
  18. .dashboard__counters__num= number_with_delimiter @instance.following_count
  19. .dashboard__counters__label= t 'admin.instances.total_followed_by_them'
  20. %div
  21. %div
  22. .dashboard__counters__num= number_with_delimiter @instance.followers_count
  23. .dashboard__counters__label= t 'admin.instances.total_followed_by_us'
  24. %div
  25. %div
  26. .dashboard__counters__num= number_with_delimiter @instance.blocks_count
  27. .dashboard__counters__label= t 'admin.instances.total_blocked_by_us'
  28. %div
  29. %div
  30. .dashboard__counters__num
  31. - if @instance.delivery_failure_tracker.available?
  32. = fa_icon 'check'
  33. - else
  34. = fa_icon 'times'
  35. .dashboard__counters__label= t 'admin.instances.delivery_available'
  36. - if @instance.private_comment.present?
  37. .speech-bubble
  38. .speech-bubble__bubble
  39. = simple_format(h(@instance.private_comment))
  40. .speech-bubble__owner= t 'admin.instances.private_comment'
  41. - if @instance.public_comment.present?
  42. .speech-bubble
  43. .speech-bubble__bubble
  44. = simple_format(h(@instance.public_comment))
  45. .speech-bubble__owner= t 'admin.instances.public_comment'
  46. %hr.spacer/
  47. %div.action-buttons
  48. %div
  49. - if @instance.domain_allow
  50. = link_to t('admin.domain_allows.undo'), admin_domain_allow_path(@instance.domain_allow), class: 'button button--destructive', data: { confirm: t('admin.accounts.are_you_sure'), method: :delete }
  51. - elsif @instance.domain_block
  52. = link_to t('admin.domain_blocks.edit'), edit_admin_domain_block_path(@instance.domain_block), class: 'button'
  53. = link_to t('admin.domain_blocks.undo'), admin_domain_block_path(@instance.domain_block), class: 'button'
  54. - else
  55. = link_to t('admin.domain_blocks.add_new'), new_admin_domain_block_path(_domain: @instance.domain), class: 'button'