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.
 
 
 
 

47 lines
2.5 KiB

  1. .public-account-header{:class => ("inactive" if account.moved?)}
  2. .public-account-header__image
  3. = image_tag account.header.url, class: 'parallax'
  4. .public-account-header__bar
  5. = link_to short_account_url(account), class: 'avatar' do
  6. - if current_account&.user&.setting_auto_play_gif
  7. = image_tag account.avatar_original_url
  8. - else
  9. = image_tag account.avatar_static_url
  10. .public-account-header__tabs
  11. .public-account-header__tabs__name
  12. %h1
  13. = display_name(account, custom_emojify: true)
  14. %small
  15. = acct(account)
  16. = fa_icon('lock') if account.locked?
  17. .public-account-header__tabs__tabs
  18. .details-counters
  19. .counter{ class: active_nav_class(short_account_url(account)) }
  20. = link_to short_account_url(account), class: 'u-url u-uid', title: number_with_delimiter(account.statuses_count) do
  21. %span.counter-number= number_to_human account.statuses_count, strip_insignificant_zeros: true
  22. %span.counter-label= t('accounts.posts', count: account.statuses_count)
  23. .counter{ class: active_nav_class(account_following_index_url(account)) }
  24. = link_to account_following_index_url(account), title: number_with_delimiter(account.following_count) do
  25. %span.counter-number= number_to_human account.following_count, strip_insignificant_zeros: true
  26. %span.counter-label= t('accounts.following', count: account.following_count)
  27. .counter{ class: active_nav_class(account_followers_url(account)) }
  28. = link_to account_followers_url(account), title: number_with_delimiter(account.followers_count) do
  29. %span.counter-number= number_to_human account.followers_count, strip_insignificant_zeros: true
  30. %span.counter-label= t('accounts.followers', count: account.followers_count)
  31. .spacer
  32. .public-account-header__tabs__tabs__buttons
  33. = account_action_button(account)
  34. .public-account-header__extra
  35. = render 'accounts/bio', account: account
  36. .public-account-header__extra__links
  37. = link_to account_following_index_url(account) do
  38. %strong= number_to_human account.following_count, strip_insignificant_zeros: true
  39. = t('accounts.following', count: account.following_count)
  40. = link_to account_followers_url(account) do
  41. %strong= number_to_human account.followers_count, strip_insignificant_zeros: true
  42. = t('accounts.followers', count: account.followers_count)