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.

55 lines
2.2 KiB

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