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.

40 lines
1.6 KiB

  1. - content_for :page_title do
  2. = display_name(@account)
  3. - content_for :header_tags do
  4. - if @account.user&.setting_noindex
  5. %meta{ name: 'robots', content: 'noindex' }/
  6. %link{ rel: 'salmon', href: api_salmon_url(@account.id) }/
  7. %link{ rel: 'alternate', type: 'application/atom+xml', href: account_url(@account, format: 'atom') }/
  8. %link{ rel: 'alternate', type: 'application/activity+json', href: ActivityPub::TagManager.instance.uri_for(@account) }/
  9. = opengraph 'og:type', 'profile'
  10. = render 'og', account: @account, url: short_account_url(@account, only_path: false)
  11. - if show_landing_strip?
  12. = render partial: 'shared/landing_strip', locals: { account: @account }
  13. .h-feed
  14. %data.p-name{ value: "#{@account.username} on #{site_hostname}" }/
  15. = render 'header', account: @account
  16. .activity-stream-tabs
  17. = active_link_to t('accounts.posts'), short_account_url(@account)
  18. = active_link_to t('accounts.posts_with_replies'), short_account_with_replies_url(@account)
  19. = active_link_to t('accounts.media'), short_account_media_url(@account)
  20. - if @statuses.empty?
  21. .accounts-grid
  22. = render 'nothing_here'
  23. - else
  24. .activity-stream.with-header
  25. - if params[:page].to_i.zero?
  26. = render partial: 'stream_entries/status', collection: @pinned_statuses, as: :status, locals: { pinned: true }
  27. = render partial: 'stream_entries/status', collection: @statuses, as: :status
  28. - if @statuses.size == 20
  29. .pagination
  30. = link_to safe_join([t('pagination.next'), fa_icon('chevron-right')], ' '), @next_url, class: 'next', rel: 'next'