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

37 lines
979 B

  1. %table.table
  2. %tbody
  3. %tr
  4. %th Username
  5. %td= @account.username
  6. %tr
  7. %th Domain
  8. %td= @account.domain
  9. %tr
  10. %th Display name
  11. %td= @account.display_name
  12. - if @account.local?
  13. %tr
  14. %th E-mail
  15. %td= @account.user.email
  16. %tr
  17. %th Current IP
  18. %td= @account.user.current_sign_in_ip
  19. - else
  20. %tr
  21. %th Profile URL
  22. %td= link_to @account.url
  23. %tr
  24. %th Feed URL
  25. %td= link_to @account.remote_url
  26. = simple_form_for @account, url: admin_account_path(@account.id) do |f|
  27. = render 'shared/error_messages', object: @account
  28. = f.input :silenced, as: :boolean, wrapper: :with_label
  29. = f.input :suspended, as: :boolean, wrapper: :with_label
  30. .actions
  31. = f.button :button, t('generic.save_changes'), type: :submit
  32. = link_to 'Perform full suspension', suspend_admin_account_path(@account.id), method: :post, data: { confirm: 'Are you sure?' }, class: 'button'