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.

42 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 @account.memorial?
  12. .memoriam-strip= t('in_memoriam_html')
  13. - elsif show_landing_strip?
  14. = render partial: 'shared/landing_strip', locals: { account: @account }
  15. .h-feed
  16. %data.p-name{ value: "#{@account.username} on #{site_hostname}" }/
  17. = render 'header', account: @account
  18. .activity-stream-tabs
  19. = active_link_to t('accounts.posts'), short_account_url(@account)
  20. = active_link_to t('accounts.posts_with_replies'), short_account_with_replies_url(@account)
  21. = active_link_to t('accounts.media'), short_account_media_url(@account)
  22. - if @statuses.empty?
  23. .accounts-grid
  24. = render 'nothing_here'
  25. - else
  26. .activity-stream.with-header
  27. - if params[:page].to_i.zero?
  28. = render partial: 'stream_entries/status', collection: @pinned_statuses, as: :status, locals: { pinned: true }
  29. = render partial: 'stream_entries/status', collection: @statuses, as: :status
  30. - if @statuses.size == 20
  31. .pagination
  32. = link_to safe_join([t('pagination.next'), fa_icon('chevron-right')], ' '), @next_url, class: 'next', rel: 'next'