logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe git clone https://hacktivis.me/git/mastofe.git

show.html.haml (2169B)


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