_header_card.html.haml 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. .report-header__card
  2. .account-card
  3. .account-card__header
  4. = image_tag report.target_account.header.url, alt: ''
  5. .account-card__title
  6. .account-card__title__avatar
  7. = image_tag report.target_account.avatar.url, alt: ''
  8. .display-name
  9. %bdi
  10. %strong.emojify.p-name= display_name(report.target_account, custom_emojify: true)
  11. %span
  12. = acct(report.target_account)
  13. = fa_icon('lock') if report.target_account.locked?
  14. - if report.target_account.note.present?
  15. .account-card__bio.emojify
  16. = prerender_custom_emojis(account_bio_format(report.target_account), report.target_account.emojis)
  17. .account-card__actions
  18. .account-card__counters
  19. .account-card__counters__item
  20. = friendly_number_to_human report.target_account.statuses_count
  21. %small= t('accounts.posts', count: report.target_account.statuses_count).downcase
  22. .account-card__counters__item
  23. = friendly_number_to_human report.target_account.followers_count
  24. %small= t('accounts.followers', count: report.target_account.followers_count).downcase
  25. .account-card__counters__item
  26. = friendly_number_to_human report.target_account.following_count
  27. %small= t('accounts.following', count: report.target_account.following_count).downcase
  28. .account-card__actions__button
  29. = link_to t('admin.reports.view_profile'), admin_account_path(report.target_account_id), class: 'button'
  30. .report-header__details.report-header__details--horizontal
  31. .report-header__details__item
  32. .report-header__details__item__header
  33. %strong= t('admin.accounts.joined')
  34. .report-header__details__item__content
  35. %time.time-ago{ datetime: report.target_account.created_at.iso8601, title: l(report.target_account.created_at) }= l report.target_account.created_at
  36. .report-header__details__item
  37. .report-header__details__item__header
  38. %strong= t('accounts.last_active')
  39. .report-header__details__item__content
  40. - if report.target_account.last_status_at.present?
  41. %time.time-ago{ datetime: report.target_account.last_status_at.to_date.iso8601, title: l(report.target_account.last_status_at.to_date) }= l report.target_account.last_status_at
  42. .report-header__details__item
  43. .report-header__details__item__header
  44. %strong= t('admin.accounts.strikes')
  45. .report-header__details__item__content
  46. = report.target_account.previous_strikes_count