_card.html.haml 667 B

123456789101112131415161718
  1. - account_url = local_assigns[:admin] ? admin_account_path(account.id) : ActivityPub::TagManager.instance.url_for(account)
  2. - compact ||= false
  3. .card.h-card
  4. = link_to account_url, target: '_blank', rel: 'noopener noreferrer' do
  5. - unless compact
  6. .card__img
  7. = image_tag account.header.url, alt: ''
  8. .card__bar
  9. .avatar
  10. = image_tag account.avatar.url, alt: '', width: 48, height: 48, class: 'u-photo'
  11. .display-name
  12. %bdi
  13. %strong.emojify.p-name= display_name(account, custom_emojify: true)
  14. %span
  15. = acct(account)
  16. = fa_icon('lock', { data: ({ hidden: true } unless account.locked?) })