_bio.html.haml 842 B

123456789101112131415161718192021
  1. - fields = account.fields
  2. .public-account-bio
  3. - unless fields.empty?
  4. .account__header__fields
  5. - fields.each do |field|
  6. %dl
  7. %dt.emojify{ title: field.name }= prerender_custom_emojis(h(field.name), account.emojis)
  8. %dd{ title: field.value, class: custom_field_classes(field) }
  9. - if field.verified?
  10. %span.verified__mark{ title: t('accounts.link_verified_on', date: l(field.verified_at)) }
  11. = fa_icon 'check'
  12. = prerender_custom_emojis(account_field_value_format(field), account.emojis)
  13. = account_badge(account)
  14. - if account.note.present?
  15. .account__header__content.emojify= prerender_custom_emojis(account_bio_format(account), account.emojis)
  16. .public-account-bio__extra
  17. = t 'accounts.joined', date: l(account.created_at, format: :month)