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

26 lines
819 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.protocol
  8. - unless account.local?
  9. = account.protocol.humanize
  10. %td.confirmed
  11. - if account.local?
  12. - if account.user_confirmed?
  13. %i.fa.fa-check
  14. - else
  15. %i.fa.fa-times
  16. %td.subscribed
  17. - if account.local?
  18. = t('admin.accounts.location.local')
  19. - elsif account.subscribed?
  20. %i.fa.fa-check
  21. - else
  22. %i.fa.fa-times
  23. %td
  24. = table_link_to 'circle', t('admin.accounts.web'), web_path("accounts/#{account.id}")
  25. = table_link_to 'globe', t('admin.accounts.public'), TagManager.instance.url_for(account)
  26. = table_link_to 'pencil', t('admin.accounts.edit'), admin_account_path(account.id)