You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
1.1 KiB

  1. .account-card
  2. .account-card__header{ style: "background-image: url(#{account.header.url(:original)})" }
  3. .detailed-status__display-name
  4. %div
  5. = image_tag account.avatar.url(:original), alt: '', width: 48, height: 48, class: 'avatar'
  6. %span.display-name
  7. - account_url = local_assigns[:admin] ? admin_account_path(account.id) : TagManager.instance.url_for(account)
  8. = link_to account_url, class: 'detailed-status__display-name p-author h-card', target: '_blank', rel: 'noopener' do
  9. %strong.emojify= display_name(account, custom_emojify: true)
  10. %span @#{account.acct}
  11. .counter
  12. %span.counter-number= number_to_human account.statuses_count, strip_insignificant_zeros: true
  13. %span.counter-label= t('accounts.posts')
  14. .counter
  15. %span.counter-number= number_to_human account.following_count, strip_insignificant_zeros: true
  16. %span.counter-label= t('accounts.following')
  17. .counter
  18. %span.counter-number= number_to_human account.followers_count, strip_insignificant_zeros: true
  19. %span.counter-label= t('accounts.followers')