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.

24 lines
1.3 KiB

  1. %tr
  2. %td
  3. = admin_account_link_to(account)
  4. %td
  5. %div.account-badges= account_badge(account, all: true)
  6. %td
  7. - if account.user_current_sign_in_ip
  8. %samp.ellipsized-ip{ title: account.user_current_sign_in_ip }= account.user_current_sign_in_ip
  9. - else
  10. \-
  11. %td
  12. - if account.user_current_sign_in_at
  13. %time.time-ago{ datetime: account.user_current_sign_in_at.iso8601, title: l(account.user_current_sign_in_at) }= l account.user_current_sign_in_at
  14. - elsif account.last_status_at.present?
  15. %time.time-ago{ datetime: account.last_status_at.iso8601, title: l(account.last_status_at) }= l account.last_status_at
  16. - else
  17. \-
  18. %td
  19. - if account.local? && account.user_pending?
  20. = table_link_to 'check', t('admin.accounts.approve'), approve_admin_account_path(account.id), method: :post, data: { confirm: t('admin.accounts.are_you_sure') } if can?(:approve, account.user)
  21. = table_link_to 'times', t('admin.accounts.reject'), reject_admin_account_path(account.id), method: :post, data: { confirm: t('admin.accounts.are_you_sure') } if can?(:reject, account.user)
  22. - else
  23. = table_link_to 'circle', t('admin.accounts.web'), web_path("accounts/#{account.id}")
  24. = table_link_to 'globe', t('admin.accounts.public'), ActivityPub::TagManager.instance.url_for(account)