The code powering m.abunchtell.com https://m.abunchtell.com
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.
 
 
 
 

30 lines
1.2 KiB

  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)