logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe git clone https://hacktivis.me/git/mastofe.git

_header.html.haml (2019B)


  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)
  8. %small<
  9. %span>< @#{account.local_username_and_domain}
  10. = fa_icon('lock') if account.locked?
  11. - if Setting.show_staff_badge
  12. - if account.user_admin?
  13. .roles
  14. .account-role.admin
  15. = t 'accounts.roles.admin'
  16. - elsif account.user_moderator?
  17. .roles
  18. .account-role.moderator
  19. = t 'accounts.roles.moderator'
  20. .bio
  21. .account__header__content.p-note.emojify= Formatter.instance.simplified_format(account, custom_emojify: true)
  22. - unless account.fields.empty?
  23. %table.account__header__fields
  24. %tbody
  25. - account.fields.each do |field|
  26. %tr
  27. %th.emojify= field.name
  28. %td.emojify= Formatter.instance.format_field(account, field.value)
  29. .details-counters
  30. .counter{ class: active_nav_class(short_account_url(account)) }
  31. = link_to short_account_url(account), class: 'u-url u-uid' do
  32. %span.counter-number= number_to_human account.statuses_count, strip_insignificant_zeros: true
  33. %span.counter-label= t('accounts.posts')
  34. .counter{ class: active_nav_class(account_following_index_url(account)) }
  35. = link_to account_following_index_url(account) do
  36. %span.counter-number= number_to_human account.following_count, strip_insignificant_zeros: true
  37. %span.counter-label= t('accounts.following')
  38. .counter{ class: active_nav_class(account_followers_url(account)) }
  39. = link_to account_followers_url(account) do
  40. %span.counter-number= number_to_human account.followers_count, strip_insignificant_zeros: true
  41. %span.counter-label= t('accounts.followers')