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

18 lines
664 B

  1. %tr
  2. %td.username
  3. = account.username
  4. %td.domain
  5. - unless account.local?
  6. = link_to account.domain, admin_accounts_path(by_domain: account.domain)
  7. %td
  8. - if account.local?
  9. - if account.user.nil?
  10. = t("admin.accounts.moderation.suspended")
  11. - else
  12. = t("admin.accounts.roles.#{account.user.role}")
  13. - else
  14. = account.protocol.humanize
  15. %td
  16. = table_link_to 'circle', t('admin.accounts.web'), web_path("accounts/#{account.id}")
  17. = table_link_to 'globe', t('admin.accounts.public'), TagManager.instance.url_for(account)
  18. = table_link_to 'pencil', t('admin.accounts.edit'), admin_account_path(account.id)