_bio.html.haml 1.2 KB

1234567891011121314151617181920212223242526272829
  1. - proofs = account.identity_proofs.active
  2. - fields = account.fields
  3. .public-account-bio
  4. - unless fields.empty? && proofs.empty?
  5. .account__header__fields
  6. - proofs.each do |proof|
  7. %dl
  8. %dt= proof.provider.capitalize
  9. %dd.verified
  10. = link_to fa_icon('check'), proof.badge.proof_url, class: 'verified__mark', title: t('accounts.link_verified_on', date: l(proof.updated_at))
  11. = link_to proof.provider_username, proof.badge.profile_url
  12. - fields.each do |field|
  13. %dl
  14. %dt.emojify{ title: field.name }= Formatter.instance.format_field(account, field.name, custom_emojify: true)
  15. %dd{ title: field.value, class: custom_field_classes(field) }
  16. - if field.verified?
  17. %span.verified__mark{ title: t('accounts.link_verified_on', date: l(field.verified_at)) }
  18. = fa_icon 'check'
  19. = Formatter.instance.format_field(account, field.value, custom_emojify: true)
  20. = account_badge(account)
  21. - if account.note.present?
  22. .account__header__content.emojify= Formatter.instance.simplified_format(account, custom_emojify: true)
  23. .public-account-bio__extra
  24. = t 'accounts.joined', date: l(account.created_at, format: :month)