2017-01-12 18:24:41 -08:00
|
|
|
- content_for :page_title do
|
2017-04-17 15:16:32 -07:00
|
|
|
= site_hostname
|
2017-01-12 18:24:41 -08:00
|
|
|
|
2017-07-24 06:09:08 -07:00
|
|
|
- content_for :header_tags do
|
2020-11-06 02:56:31 -08:00
|
|
|
= javascript_pack_tag 'public', crossorigin: 'anonymous'
|
2017-10-10 15:52:25 -07:00
|
|
|
= render partial: 'shared/og'
|
2017-01-13 11:14:21 -08:00
|
|
|
|
2019-09-19 02:09:05 -07:00
|
|
|
.grid-4
|
2018-08-09 03:58:20 -07:00
|
|
|
.column-0
|
|
|
|
.public-account-header.public-account-header--no-bar
|
|
|
|
.public-account-header__image
|
2022-10-04 18:47:56 -07:00
|
|
|
= image_tag @instance_presenter.hero&.file&.url || @instance_presenter.thumbnail&.file&.url || asset_pack_path('media/images/preview.png'), alt: @instance_presenter.title, class: 'parallax'
|
2017-07-24 06:09:08 -07:00
|
|
|
|
2018-08-09 03:58:20 -07:00
|
|
|
.column-1
|
|
|
|
.landing-page__call-to-action{ dir: 'ltr' }
|
|
|
|
.row
|
|
|
|
.row__information-board
|
|
|
|
.information-board__section
|
|
|
|
%span= t 'about.user_count_before'
|
2021-07-07 12:13:08 -07:00
|
|
|
%strong= friendly_number_to_human @instance_presenter.user_count
|
2018-08-22 10:42:47 -07:00
|
|
|
%span= t 'about.user_count_after', count: @instance_presenter.user_count
|
2018-08-09 03:58:20 -07:00
|
|
|
.information-board__section
|
|
|
|
%span= t 'about.status_count_before'
|
2021-07-07 12:13:08 -07:00
|
|
|
%strong= friendly_number_to_human @instance_presenter.status_count
|
2018-08-22 10:42:47 -07:00
|
|
|
%span= t 'about.status_count_after', count: @instance_presenter.status_count
|
2018-08-09 03:58:20 -07:00
|
|
|
.row__mascot
|
|
|
|
.landing-page__mascot
|
2019-03-15 07:05:31 -07:00
|
|
|
= image_tag @instance_presenter.mascot&.file&.url || asset_pack_path('media/images/elephant_ui_plane.svg'), alt: ''
|
2017-07-24 06:09:08 -07:00
|
|
|
|
2018-08-09 03:58:20 -07:00
|
|
|
.column-2
|
2019-09-19 02:09:05 -07:00
|
|
|
.contact-widget
|
|
|
|
%h4= t 'about.administered_by'
|
2017-01-13 11:14:21 -08:00
|
|
|
|
2022-10-04 18:47:56 -07:00
|
|
|
= account_link_to(@instance_presenter.contact.account)
|
2017-01-13 11:14:21 -08:00
|
|
|
|
2022-10-04 18:47:56 -07:00
|
|
|
- if @instance_presenter.contact.email.present?
|
2019-09-19 02:09:05 -07:00
|
|
|
%h4
|
|
|
|
= succeed ':' do
|
|
|
|
= t 'about.contact'
|
|
|
|
|
2022-10-04 18:47:56 -07:00
|
|
|
= mail_to @instance_presenter.contact.email, nil, title: @instance_presenter.contact.email
|
2018-08-09 03:58:20 -07:00
|
|
|
|
|
|
|
.column-3
|
2019-07-18 16:44:42 -07:00
|
|
|
= render 'application/flashes'
|
|
|
|
|
2021-02-22 09:26:24 -08:00
|
|
|
- if @contents.blank? && @rules.empty? && (!display_blocks? || @blocks&.empty?)
|
2019-09-19 02:09:05 -07:00
|
|
|
= nothing_here
|
|
|
|
- else
|
|
|
|
.box-widget
|
|
|
|
.rich-formatting
|
2021-02-21 10:50:12 -08:00
|
|
|
- unless @rules.empty?
|
|
|
|
%h2#rules= t('about.rules')
|
|
|
|
|
|
|
|
%p= t('about.rules_html')
|
|
|
|
|
|
|
|
%ol.rules-list
|
|
|
|
- @rules.each do |rule|
|
|
|
|
%li
|
|
|
|
.rules-list__text= rule.text
|
|
|
|
|
2019-09-19 02:09:05 -07:00
|
|
|
= @contents.html_safe
|
|
|
|
|
|
|
|
- if display_blocks? && !@blocks.empty?
|
|
|
|
%h2#unavailable-content= t('about.unavailable_content')
|
|
|
|
|
|
|
|
%p= t('about.unavailable_content_html')
|
|
|
|
|
2019-09-29 07:23:01 -07:00
|
|
|
- if (blocks = @blocks.select(&:reject_media?)) && !blocks.empty?
|
2020-06-09 01:28:02 -07:00
|
|
|
%h3= t('about.unavailable_content_description.rejecting_media_title')
|
2019-09-29 07:23:01 -07:00
|
|
|
%p= t('about.unavailable_content_description.rejecting_media')
|
|
|
|
= render partial: 'domain_blocks', locals: { domain_blocks: blocks }
|
|
|
|
- if (blocks = @blocks.select(&:silence?)) && !blocks.empty?
|
2020-06-09 01:28:02 -07:00
|
|
|
%h3= t('about.unavailable_content_description.silenced_title')
|
2019-09-29 07:23:01 -07:00
|
|
|
%p= t('about.unavailable_content_description.silenced')
|
|
|
|
= render partial: 'domain_blocks', locals: { domain_blocks: blocks }
|
|
|
|
- if (blocks = @blocks.select(&:suspend?)) && !blocks.empty?
|
2020-06-09 01:28:02 -07:00
|
|
|
%h3= t('about.unavailable_content_description.suspended_title')
|
2019-09-29 07:23:01 -07:00
|
|
|
%p= t('about.unavailable_content_description.suspended')
|
|
|
|
= render partial: 'domain_blocks', locals: { domain_blocks: blocks }
|
2019-09-19 02:09:05 -07:00
|
|
|
|
|
|
|
.column-4
|
|
|
|
%ul.table-of-contents
|
2021-02-21 10:50:12 -08:00
|
|
|
- unless @rules.empty?
|
|
|
|
%li= link_to t('about.rules'), '#rules'
|
|
|
|
|
2019-09-19 02:09:05 -07:00
|
|
|
- @table_of_contents.each do |item|
|
|
|
|
%li
|
|
|
|
= link_to item.title, "##{item.anchor}"
|
|
|
|
|
|
|
|
- unless item.children.empty?
|
|
|
|
%ul
|
|
|
|
- item.children.each do |sub_item|
|
|
|
|
%li= link_to sub_item.title, "##{sub_item.anchor}"
|
|
|
|
|
|
|
|
- if display_blocks? && !@blocks.empty?
|
|
|
|
%li= link_to t('about.unavailable_content'), '#unavailable-content'
|