The code powering m.abunchtell.com https://m.abunchtell.com
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.
 
 
 
 

60 lines
2.2 KiB

  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. - if @private_comment.present?
  33. .speech-bubble
  34. .speech-bubble__bubble
  35. = simple_format(h(@private_comment))
  36. .speech-bubble__owner= t 'admin.instances.private_comment'
  37. - if @public_comment.present?
  38. .speech-bubble
  39. .speech-bubble__bubble
  40. = simple_format(h(@public_comment))
  41. .speech-bubble__owner= t 'admin.instances.public_comment'
  42. %hr.spacer/
  43. %div{ style: 'overflow: hidden' }
  44. %div{ style: 'float: left' }
  45. = link_to t('admin.accounts.title'), admin_accounts_path(remote: '1', by_domain: @instance.domain), class: 'button'
  46. %div{ style: 'float: right' }
  47. - if @domain_allow
  48. = link_to t('admin.domain_allows.undo'), admin_domain_allow_path(@domain_allow), class: 'button button--destructive', data: { confirm: t('admin.accounts.are_you_sure'), method: :delete }
  49. - elsif @domain_block
  50. = link_to t('admin.domain_blocks.edit'), edit_admin_domain_block_path(@domain_block), class: 'button'
  51. = link_to t('admin.domain_blocks.undo'), admin_domain_block_path(@domain_block), class: 'button'
  52. - else
  53. = link_to t('admin.domain_blocks.add_new'), new_admin_domain_block_path(_domain: @instance.domain), class: 'button'