_card.html.haml 619 B

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