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.

19 lines
965 B

  1. - size ||= 36
  2. .account.compact
  3. .account__wrapper
  4. - if account.nil?
  5. .account__display-name
  6. .account__avatar-wrapper
  7. .account__avatar{ style: "background-image: url(#{full_asset_url('avatars/original/missing.png', skip_pipeline: true)}); width: #{size}px; height: #{size}px; background-size: #{size}px #{size}px" }
  8. %span.display-name
  9. %strong= t 'about.contact_missing'
  10. %span.display-name__account= t 'about.contact_unavailable'
  11. - else
  12. = link_to TagManager.instance.url_for(account), class: 'account__display-name' do
  13. .account__avatar-wrapper
  14. .account__avatar{ style: "background-image: url(#{account.avatar.url}); width: #{size}px; height: #{size}px; background-size: #{size}px #{size}px" }
  15. %span.display-name
  16. %bdi
  17. %strong.display-name__html.emojify= display_name(account, custom_emojify: true)
  18. %span.display-name__account @#{account.acct}