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.

30 lines
1.1 KiB

  1. - content_for :page_title do
  2. = display_name(@account)
  3. - content_for :header_tags do
  4. %link{ rel: 'salmon', href: api_salmon_url(@account.id) }/
  5. %link{ rel: 'alternate', type: 'application/atom+xml', href: account_url(@account, format: 'atom') }/
  6. .card{ style: "background-image: url(#{@account.header.url(:medium)})" }
  7. .avatar= image_tag @account.avatar.url(:large)
  8. %h1.name
  9. = display_name(@account)
  10. %small= "@#{@account.username}"
  11. .details
  12. .counter
  13. %span.counter-label Posts
  14. %span.counter-number= @account.statuses.count
  15. .counter
  16. %span.counter-label Following
  17. %span.counter-number= @account.following.count
  18. .counter
  19. %span.counter-label Followers
  20. %span.counter-number= @account.followers.count
  21. .bio
  22. %p= @account.note
  23. .activity-stream
  24. - @statuses.each do |status|
  25. = render partial: 'stream_entries/status', locals: { status: status, include_threads: false, is_successor: false, is_predecessor: false }
  26. = will_paginate @statuses, previous_label: "#{fa_icon('chevron-left')} Prev".html_safe, next_label: "Next #{fa_icon('chevron-right')}".html_safe, inner_window: 2