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.

34 lines
1.4 KiB

  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:site_name', content: 'Mastodon' }/
  7. %meta{ property: 'og:type', content: 'profile' }/
  8. %meta{ property: 'og:title', content: "#{@account.username} on #{Rails.configuration.x.local_domain}" }/
  9. %meta{ property: 'og:description', content: @account.note }/
  10. %meta{ property: 'og:image', content: full_asset_url(@account.avatar.url(:original)) }/
  11. %meta{ property: 'og:image:width', content: '120' }/
  12. %meta{ property: 'og:image:height', content: '120' }/
  13. %meta{ property: 'twitter:card', content: 'summary' }/
  14. - if !user_signed_in? && !Rails.configuration.x.single_user_mode
  15. = render partial: 'shared/landing_strip', locals: { account: @account }
  16. .h-feed
  17. %data.p-name{ value: "#{@account.username} on #{Rails.configuration.x.local_domain}" }/
  18. = render partial: 'header'
  19. - if @statuses.empty?
  20. .accounts-grid
  21. = render partial: 'nothing_here'
  22. - else
  23. .activity-stream
  24. = render partial: 'stream_entries/status', collection: @statuses, as: :status
  25. .pagination
  26. - if @statuses.size == 20
  27. = link_to safe_join([t('pagination.next'), fa_icon('chevron-right')], ' '), short_account_url(@account, max_id: @statuses.last.id), class: 'next_page', rel: 'next'