_card.html.haml 656 B

1234567891011121314151617
  1. - account_url = local_assigns[:admin] ? admin_account_path(account.id) : TagManager.instance.url_for(account)
  2. .card.h-card
  3. = link_to account_url, target: '_blank', rel: 'noopener' 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. %span{id: "default_account_display_name", style: "display:none;"}= account.username
  11. %bdi
  12. %strong.emojify.p-name= display_name(account, custom_emojify: true)
  13. %span
  14. = acct(account)
  15. = fa_icon('lock') if account.locked?