1 - content_for :page_title do
4 - content_for :header_tags do
5 = javascript_pack_tag 'public', integrity: true, crossorigin: 'anonymous'
6 = render partial: 'shared/og'
10 .public-account-header.public-account-header--no-bar
11 .public-account-header__image
12 = image_tag @instance_presenter.hero&.file&.url || @instance_presenter.thumbnail&.file&.url || asset_pack_path('media/images/preview.jpg'), alt: @instance_presenter.site_title, class: 'parallax'
15 .landing-page__call-to-action{ dir: 'ltr' }
17 .row__information-board
18 .information-board__section
19 %span= t 'about.user_count_before'
20 %strong= number_with_delimiter @instance_presenter.user_count
21 %span= t 'about.user_count_after', count: @instance_presenter.user_count
22 .information-board__section
23 %span= t 'about.status_count_before'
24 %strong= number_with_delimiter @instance_presenter.status_count
25 %span= t 'about.status_count_after', count: @instance_presenter.status_count
28 = image_tag @instance_presenter.mascot&.file&.url || asset_pack_path('media/images/elephant_ui_plane.svg'), alt: ''
32 %h4= t 'about.administered_by'
34 = account_link_to(@instance_presenter.contact_account)
36 - if @instance_presenter.site_contact_email.present?
41 = mail_to @instance_presenter.site_contact_email, nil, title: @instance_presenter.site_contact_email
44 = render 'application/flashes'
46 - if @contents.blank? && (!display_blocks? || @blocks&.empty?)
53 - if display_blocks? && !@blocks.empty?
54 %h2#unavailable-content= t('about.unavailable_content')
56 %p= t('about.unavailable_content_html')
58 - @blocks.each do |domain_block|
60 %strong= "#{domain_block.domain}:"
62 - if domain_block.suspend?
63 = t('about.unavailable_content_description.suspended')
65 = t('about.unavailable_content_description.silenced') if domain_block.silence?
66 = t('about.unavailable_content_description.rejecting_media') if domain_block.reject_media?
68 - if display_blocks_rationale? && domain_block.public_comment.present?
69 %strong= t('about.unavailable_content_description.reason')
70 = domain_block.public_comment
74 - @table_of_contents.each do |item|
76 = link_to item.title, "##{item.anchor}"
78 - unless item.children.empty?
80 - item.children.each do |sub_item|
81 %li= link_to sub_item.title, "##{sub_item.anchor}"
83 - if display_blocks? && !@blocks.empty?
84 %li= link_to t('about.unavailable_content'), '#unavailable-content'