mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
33 lines
1.6 KiB
Plaintext
33 lines
1.6 KiB
Plaintext
%tr
|
|
%td
|
|
= admin_account_link_to(account)
|
|
%td
|
|
%div.account-badges= account_badge(account, all: true)
|
|
%td
|
|
- if account.user_current_sign_in_ip
|
|
%samp.ellipsized-ip{ title: account.user_current_sign_in_ip }= account.user_current_sign_in_ip
|
|
- else
|
|
\-
|
|
%td
|
|
- 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
|
|
- elsif account.last_status_at.present?
|
|
%time.time-ago{ datetime: account.last_status_at.iso8601, title: l(account.last_status_at) }= l account.last_status_at
|
|
- else
|
|
\-
|
|
%td
|
|
- 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}")
|
|
= table_link_to 'globe', t('admin.accounts.public'), ActivityPub::TagManager.instance.url_for(account)
|
|
%td
|
|
= number_with_delimiter account.statuses_count
|
|
%td
|
|
= number_with_delimiter account.following_count
|
|
%td
|
|
= number_with_delimiter account.followers_count
|
|
%td
|
|
= table_link_to 'trash', t('admin.accounts.web'), web_path("accounts/#{account.id}/action/new?type=suspend")
|