闭社主体 forked from https://github.com/tootsuite/mastodon
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.

29 lines
1.3 KiB

  1. .card{ style: "background-image: url(#{@account.header.url(:medium)})" }
  2. - if user_signed_in? && current_account.id != @account.id
  3. .controls
  4. - if current_account.following?(@account)
  5. = link_to t('accounts.unfollow'), unfollow_account_path(@account), data: { method: :post }, class: 'button'
  6. - else
  7. = link_to t('accounts.follow'), follow_account_path(@account), data: { method: :post }, class: 'button'
  8. .avatar= image_tag @account.avatar.url(:large)
  9. %h1.name
  10. = display_name(@account)
  11. %small= "@#{@account.username}"
  12. .details
  13. .bio
  14. .account__header__content= Formatter.instance.simplified_format(@account)
  15. .details-counters
  16. .counter{ class: active_nav_class(account_url(@account)) }
  17. = link_to account_url(@account) do
  18. %span.counter-label= t('accounts.posts')
  19. %span.counter-number= @account.statuses.count
  20. .counter{ class: active_nav_class(following_account_url(@account)) }
  21. = link_to following_account_url(@account) do
  22. %span.counter-label= t('accounts.following')
  23. %span.counter-number= @account.following.count
  24. .counter{ class: active_nav_class(followers_account_url(@account)) }
  25. = link_to followers_account_url(@account) do
  26. %span.counter-label= t('accounts.followers')
  27. %span.counter-number= @account.followers.count