2017-05-02 20:56:28 +02:00
|
|
|
%tr
|
2018-06-04 13:09:36 +02:00
|
|
|
%td
|
2018-11-26 15:53:27 +01:00
|
|
|
= admin_account_link_to(account)
|
2017-12-13 12:15:10 +01:00
|
|
|
%td
|
2018-11-26 15:53:27 +01:00
|
|
|
%div{ style: 'margin: -2px 0' }= account_badge(account, all: true)
|
|
|
|
%td
|
|
|
|
- if account.user_current_sign_in_ip
|
2019-03-14 05:28:30 +01:00
|
|
|
%samp.ellipsized-ip{ title: account.user_current_sign_in_ip }= account.user_current_sign_in_ip
|
2017-05-02 20:56:28 +02:00
|
|
|
- else
|
2018-11-26 15:53:27 +01:00
|
|
|
\-
|
2017-05-02 20:56:28 +02:00
|
|
|
%td
|
2018-11-26 15:53:27 +01:00
|
|
|
- if account.user_current_sign_in_at
|
|
|
|
%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
|
|
|
|
- else
|
|
|
|
\-
|
2018-12-14 01:47:50 +01:00
|
|
|
%td
|
2019-03-14 05:28:30 +01:00
|
|
|
- if account.local? && account.user_pending?
|
|
|
|
= 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)
|
|
|
|
= 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)
|
|
|
|
- else
|
|
|
|
= table_link_to 'circle', t('admin.accounts.web'), web_path("accounts/#{account.id}")
|
2019-07-07 16:16:51 +02:00
|
|
|
= table_link_to 'globe', t('admin.accounts.public'), ActivityPub::TagManager.instance.url_for(account)
|
2019-12-18 12:52:46 +01:00
|
|
|
%td
|
|
|
|
= number_with_delimiter account.statuses_count
|
|
|
|
%td
|
|
|
|
= number_with_delimiter account.following_count
|
|
|
|
%td
|
|
|
|
= number_with_delimiter account.followers_count
|
|
|
|
%td
|
2019-12-20 14:30:13 +01:00
|
|
|
= table_link_to 'trash', t('admin.accounts.web'), web_path("accounts/#{account.id}/action/new?type=suspend")
|