闭社主体 forked from https://github.com/tootsuite/mastodon
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.

27 lines
1.1 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. = render partial: 'header'
  14. - if @statuses.empty?
  15. .accounts-grid
  16. = render partial: 'nothing_here'
  17. - else
  18. .activity-stream
  19. = render partial: 'stream_entries/status', collection: @statuses, as: :status
  20. .pagination
  21. - if @statuses.size == 20
  22. = link_to safe_join([t('pagination.next'), fa_icon('chevron-right')], ' '), account_url(@account, max_id: @statuses.last.id), class: 'next_page', rel: 'next'