闭社主体 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.

28 lines
956 B

  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. %meta{ property: 'og:type', content: 'profile' }/
  7. = render 'og', account: @account
  8. - if show_landing_strip?
  9. = render partial: 'shared/landing_strip', locals: { account: @account }
  10. .h-feed
  11. %data.p-name{ value: "#{@account.username} on #{site_hostname}" }/
  12. = render 'header', account: @account
  13. - if @statuses.empty?
  14. .accounts-grid
  15. = render 'nothing_here'
  16. - else
  17. .activity-stream
  18. = render partial: 'stream_entries/status', collection: @statuses, as: :status
  19. .pagination
  20. - if @statuses.size == 20
  21. = link_to safe_join([t('pagination.next'), fa_icon('chevron-right')], ' '), short_account_url(@account, max_id: @statuses.last.id), class: 'next', rel: 'next'