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.
 
 
 
 

52 lines
2.1 KiB

  1. .card.h-card.p-author{ style: "background-image: url(#{account.header.url(:original)})" }
  2. .card__illustration
  3. = render 'accounts/follow_button', account: account
  4. .avatar= image_tag account.avatar.url(:original), class: 'u-photo'
  5. .card__bio
  6. %h1.name
  7. %span.p-name.emojify= display_name(account, custom_emojify: true)
  8. %small<
  9. %span>< @#{account.local_username_and_domain}
  10. = fa_icon('lock') if account.locked?
  11. - if account.bot?
  12. .roles
  13. .account-role.bot
  14. = t 'accounts.roles.bot'
  15. - elsif Setting.show_staff_badge
  16. - if account.user_admin?
  17. .roles
  18. .account-role.admin
  19. = t 'accounts.roles.admin'
  20. - elsif account.user_moderator?
  21. .roles
  22. .account-role.moderator
  23. = t 'accounts.roles.moderator'
  24. .bio
  25. .account__header__content.p-note.emojify= Formatter.instance.simplified_format(account, custom_emojify: true)
  26. - unless account.fields.empty?
  27. .account__header__fields
  28. - account.fields.each do |field|
  29. %dl
  30. %dt.emojify{ title: field.name }= field.name
  31. %dd.emojify{ title: field.value }= Formatter.instance.format_field(account, field.value, custom_emojify: true)
  32. .details-counters
  33. .counter{ class: active_nav_class(short_account_url(account)) }
  34. = link_to short_account_url(account), class: 'u-url u-uid' do
  35. %span.counter-number= number_to_human account.statuses_count, strip_insignificant_zeros: true
  36. %span.counter-label= t('accounts.posts')
  37. .counter{ class: active_nav_class(account_following_index_url(account)) }
  38. = link_to account_following_index_url(account) do
  39. %span.counter-number= number_to_human account.following_count, strip_insignificant_zeros: true
  40. %span.counter-label= t('accounts.following')
  41. .counter{ class: active_nav_class(account_followers_url(account)) }
  42. = link_to account_followers_url(account) do
  43. %span.counter-number= number_to_human account.followers_count, strip_insignificant_zeros: true
  44. %span.counter-label= t('accounts.followers')