闭社主体 forked from https://github.com/tootsuite/mastodon
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.

89 lines
3.2 KiB

  1. - content_for :page_title do
  2. = @account.acct
  3. %table.table
  4. %tbody
  5. %tr
  6. %th= t('admin.accounts.username')
  7. %td= @account.username
  8. %tr
  9. %th= t('admin.accounts.domain')
  10. %td= @account.domain
  11. %tr
  12. %th= t('admin.accounts.display_name')
  13. %td= @account.display_name
  14. - if @account.local?
  15. %tr
  16. %th= t('admin.accounts.email')
  17. %td= @account.user_email
  18. %tr
  19. %th= t('admin.accounts.most_recent_ip')
  20. %td= @account.user_current_sign_in_ip
  21. %tr
  22. %th= t('admin.accounts.most_recent_activity')
  23. %td
  24. - if @account.user_current_sign_in_at
  25. = l @account.user_current_sign_in_at
  26. - else
  27. Never
  28. - else
  29. %tr
  30. %th= t('admin.accounts.profile_url')
  31. %td= link_to @account.url, @account.url
  32. %tr
  33. %th= t('admin.accounts.feed_url')
  34. %td= link_to @account.remote_url, @account.remote_url
  35. %tr
  36. %th= t('admin.accounts.push_subscription_expires')
  37. %td
  38. - if @account.subscribed?
  39. = l @account.subscription_expires_at
  40. - else
  41. = t('admin.accounts.not_subscribed')
  42. %tr
  43. %th= t('admin.accounts.salmon_url')
  44. %td= link_to @account.salmon_url, @account.salmon_url
  45. %tr
  46. %th= t('admin.accounts.follows')
  47. %td= @account.following_count
  48. %tr
  49. %th= t('admin.accounts.followers')
  50. %td= @account.followers_count
  51. %tr
  52. %th= t('admin.accounts.statuses')
  53. %td= @account.statuses_count
  54. %tr
  55. %th= t('admin.accounts.media_attachments')
  56. %td
  57. = @account.media_attachments.count
  58. = surround '(', ')' do
  59. = number_to_human_size @account.media_attachments.sum('file_file_size')
  60. %tr
  61. %th= t('.created_reports')
  62. %td= link_to pluralize(@account.reports.count, t('.report')), admin_reports_path(account_id: @account.id)
  63. %tr
  64. %th= t('.targeted_reports')
  65. %td= link_to pluralize(@account.targeted_reports.count, t('.report')), admin_reports_path(target_account_id: @account.id)
  66. - if @account.local?
  67. %div{ style: 'float: right' }
  68. = link_to t('admin.accounts.reset_password'), admin_account_reset_path(@account.id), method: :create, class: 'button'
  69. - if @account.user&.otp_required_for_login?
  70. = link_to t('admin.accounts.disable_two_factor_authentication'), admin_user_two_factor_authentication_path(@account.user.id), method: :delete, class: 'button'
  71. %div{ style: 'float: left' }
  72. - if @account.silenced?
  73. = link_to t('admin.accounts.undo_silenced'), admin_account_silence_path(@account.id), method: :delete, class: 'button'
  74. - else
  75. = link_to t('admin.accounts.silence'), admin_account_silence_path(@account.id), method: :post, class: 'button'
  76. - if @account.local?
  77. - unless @account.user_confirmed?
  78. = link_to t('admin.accounts.confirm'), admin_account_confirmation_path(@account.id), method: :post, class: 'button'
  79. - if @account.suspended?
  80. = link_to t('admin.accounts.undo_suspension'), admin_account_suspension_path(@account.id), method: :delete, class: 'button'
  81. - else
  82. = link_to t('admin.accounts.perform_full_suspension'), admin_account_suspension_path(@account.id), method: :post, data: { confirm: t('admin.accounts.are_you_sure') }, class: 'button'