闭社主体 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.

72 lines
1.9 KiB

  1. - content_for :page_title do
  2. = @account.acct
  3. %table.table
  4. %tbody
  5. %tr
  6. %th Username
  7. %td= @account.username
  8. %tr
  9. %th Domain
  10. %td= @account.domain
  11. %tr
  12. %th Display name
  13. %td= @account.display_name
  14. - if @account.local?
  15. %tr
  16. %th E-mail
  17. %td= @account.user.email
  18. %tr
  19. %th Most recent IP
  20. %td= @account.user.current_sign_in_ip
  21. %tr
  22. %th 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 Profile URL
  31. %td= link_to @account.url
  32. %tr
  33. %th Feed URL
  34. %td= link_to @account.remote_url
  35. %tr
  36. %th PuSH subscription expires
  37. %td
  38. - if @account.subscribed?
  39. = l @account.subscription_expires_at
  40. - else
  41. Not subscribed
  42. %tr
  43. %th Salmon URL
  44. %td= link_to @account.salmon_url
  45. %tr
  46. %th Follows
  47. %td= @account.following_count
  48. %tr
  49. %th Followers
  50. %td= @account.followers_count
  51. %tr
  52. %th Statuses
  53. %td= @account.statuses_count
  54. %tr
  55. %th 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. - if @account.silenced?
  61. = link_to 'Undo silence', admin_account_silence_path(@account.id), method: :delete, class: 'button'
  62. - else
  63. = link_to 'Silence', admin_account_silence_path(@account.id), method: :post, class: 'button'
  64. - if @account.suspended?
  65. = link_to 'Undo suspension', admin_account_suspension_path(@account.id), method: :delete, class: 'button'
  66. - else
  67. = link_to 'Perform full suspension', admin_account_suspension_path(@account.id), method: :post, data: { confirm: 'Are you sure?' }, class: 'button'