2023-11-30 16:43:26 +01:00
|
|
|
.batch-table__row{ class: [!account.unavailable? && account.user_pending? && 'batch-table__row--attention', (account.unavailable? || account.user_unconfirmed?) && 'batch-table__row--muted'] }
|
2021-12-05 21:48:39 +01:00
|
|
|
%label.batch-table__row__select.batch-table__row__select--aligned.batch-checkbox
|
|
|
|
= f.check_box :account_ids, { multiple: true, include_hidden: false }, account.id
|
|
|
|
.batch-table__row__content.batch-table__row__content--unpadded
|
|
|
|
%table.accounts-table
|
|
|
|
%tbody
|
|
|
|
%tr
|
|
|
|
%td
|
|
|
|
= account_link_to account, path: admin_account_path(account.id)
|
|
|
|
%td.accounts-table__count.optional
|
2023-11-30 16:43:26 +01:00
|
|
|
- if account.unavailable? || account.user_pending?
|
2021-12-05 21:48:39 +01:00
|
|
|
\-
|
|
|
|
- else
|
|
|
|
= friendly_number_to_human account.statuses_count
|
|
|
|
%small= t('accounts.posts', count: account.statuses_count).downcase
|
|
|
|
%td.accounts-table__count.optional
|
2023-11-30 16:43:26 +01:00
|
|
|
- if account.unavailable? || account.user_pending?
|
2021-12-05 21:48:39 +01:00
|
|
|
\-
|
|
|
|
- else
|
|
|
|
= friendly_number_to_human account.followers_count
|
|
|
|
%small= t('accounts.followers', count: account.followers_count).downcase
|
|
|
|
%td.accounts-table__count
|
|
|
|
= relevant_account_timestamp(account)
|
|
|
|
%small= t('accounts.last_active')
|
|
|
|
%td.accounts-table__extra
|
|
|
|
- if account.local?
|
|
|
|
- if account.user_email
|
|
|
|
= link_to account.user_email.split('@').last, admin_accounts_path(email: "%@#{account.user_email.split('@').last}"), title: account.user_email
|
|
|
|
- else
|
|
|
|
\-
|
|
|
|
%br/
|
|
|
|
%samp.ellipsized-ip= relevant_account_ip(account, params[:ip])
|
2023-11-30 16:43:26 +01:00
|
|
|
- if !account.unavailable? && account.user_pending? && account.user&.invite_request&.text.present?
|
2021-12-05 21:48:39 +01:00
|
|
|
.batch-table__row__content__quote
|
|
|
|
%p= account.user&.invite_request&.text
|