_account.html.haml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435
  1. .batch-table__row{ class: [!account.suspended? && account.user_pending? && 'batch-table__row--attention', (account.suspended? || account.user_unconfirmed?) && 'batch-table__row--muted'] }
  2. %label.batch-table__row__select.batch-table__row__select--aligned.batch-checkbox
  3. = f.check_box :account_ids, { multiple: true, include_hidden: false }, account.id
  4. .batch-table__row__content.batch-table__row__content--unpadded
  5. %table.accounts-table
  6. %tbody
  7. %tr
  8. %td
  9. = account_link_to account, path: admin_account_path(account.id)
  10. %td.accounts-table__count.optional
  11. - if account.suspended? || account.user_pending?
  12. \-
  13. - else
  14. = friendly_number_to_human account.statuses_count
  15. %small= t('accounts.posts', count: account.statuses_count).downcase
  16. %td.accounts-table__count.optional
  17. - if account.suspended? || account.user_pending?
  18. \-
  19. - else
  20. = friendly_number_to_human account.followers_count
  21. %small= t('accounts.followers', count: account.followers_count).downcase
  22. %td.accounts-table__count
  23. = relevant_account_timestamp(account)
  24. %small= t('accounts.last_active')
  25. %td.accounts-table__extra
  26. - if account.local?
  27. - if account.user_email
  28. = link_to account.user_email.split('@').last, admin_accounts_path(email: "%@#{account.user_email.split('@').last}"), title: account.user_email
  29. - else
  30. \-
  31. %br/
  32. %samp.ellipsized-ip= relevant_account_ip(account, params[:ip])
  33. - if !account.suspended? && account.user_pending? && account.user&.invite_request&.text&.present?
  34. .batch-table__row__content__quote
  35. %p= account.user&.invite_request&.text