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.

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