2017-01-13 04:24:41 +02:00
|
|
|
- content_for :page_title do
|
2017-04-18 01:16:32 +03:00
|
|
|
= site_hostname
|
2017-01-13 04:24:41 +02:00
|
|
|
|
2017-07-24 16:09:08 +03:00
|
|
|
- content_for :header_tags do
|
|
|
|
= javascript_pack_tag 'public', integrity: true, crossorigin: 'anonymous'
|
2017-10-11 01:52:25 +03:00
|
|
|
= render partial: 'shared/og'
|
2017-01-13 21:14:21 +02:00
|
|
|
|
2019-09-19 12:09:05 +03:00
|
|
|
.grid-4
|
2018-08-09 13:58:20 +03:00
|
|
|
.column-0
|
|
|
|
.public-account-header.public-account-header--no-bar
|
|
|
|
.public-account-header__image
|
2019-03-15 16:05:31 +02:00
|
|
|
= 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'
|
2017-07-24 16:09:08 +03:00
|
|
|
|
2018-08-09 13:58:20 +03:00
|
|
|
.column-1
|
|
|
|
.landing-page__call-to-action{ dir: 'ltr' }
|
|
|
|
.row
|
|
|
|
.row__information-board
|
|
|
|
.information-board__section
|
|
|
|
%span= t 'about.user_count_before'
|
|
|
|
%strong= number_with_delimiter @instance_presenter.user_count
|
2018-08-22 20:42:47 +03:00
|
|
|
%span= t 'about.user_count_after', count: @instance_presenter.user_count
|
2018-08-09 13:58:20 +03:00
|
|
|
.information-board__section
|
|
|
|
%span= t 'about.status_count_before'
|
|
|
|
%strong= number_with_delimiter @instance_presenter.status_count
|
2018-08-22 20:42:47 +03:00
|
|
|
%span= t 'about.status_count_after', count: @instance_presenter.status_count
|
2018-08-09 13:58:20 +03:00
|
|
|
.row__mascot
|
|
|
|
.landing-page__mascot
|
2019-03-15 16:05:31 +02:00
|
|
|
= image_tag @instance_presenter.mascot&.file&.url || asset_pack_path('media/images/elephant_ui_plane.svg'), alt: ''
|
2017-07-24 16:09:08 +03:00
|
|
|
|
2018-08-09 13:58:20 +03:00
|
|
|
.column-2
|
2019-09-19 12:09:05 +03:00
|
|
|
.contact-widget
|
|
|
|
%h4= t 'about.administered_by'
|
2017-01-13 21:14:21 +02:00
|
|
|
|
2018-08-09 13:58:20 +03:00
|
|
|
= account_link_to(@instance_presenter.contact_account)
|
2017-01-13 21:14:21 +02:00
|
|
|
|
2018-08-09 13:58:20 +03:00
|
|
|
- if @instance_presenter.site_contact_email.present?
|
2019-09-19 12:09:05 +03:00
|
|
|
%h4
|
|
|
|
= succeed ':' do
|
|
|
|
= t 'about.contact'
|
|
|
|
|
|
|
|
= mail_to @instance_presenter.site_contact_email, nil, title: @instance_presenter.site_contact_email
|
2018-08-09 13:58:20 +03:00
|
|
|
|
|
|
|
.column-3
|
2019-07-19 02:44:42 +03:00
|
|
|
= render 'application/flashes'
|
|
|
|
|
2019-09-19 12:09:05 +03:00
|
|
|
- if @contents.blank? && (!display_blocks? || @blocks&.empty?)
|
|
|
|
= nothing_here
|
|
|
|
- else
|
|
|
|
.box-widget
|
|
|
|
.rich-formatting
|
|
|
|
= @contents.html_safe
|
|
|
|
|
|
|
|
- if display_blocks? && !@blocks.empty?
|
|
|
|
%h2#unavailable-content= t('about.unavailable_content')
|
|
|
|
|
|
|
|
%p= t('about.unavailable_content_html')
|
|
|
|
|
2019-09-29 17:23:01 +03:00
|
|
|
- if (blocks = @blocks.select(&:reject_media?)) && !blocks.empty?
|
|
|
|
%p= t('about.unavailable_content_description.rejecting_media')
|
|
|
|
= render partial: 'domain_blocks', locals: { domain_blocks: blocks }
|
|
|
|
- if (blocks = @blocks.select(&:silence?)) && !blocks.empty?
|
|
|
|
%p= t('about.unavailable_content_description.silenced')
|
|
|
|
= render partial: 'domain_blocks', locals: { domain_blocks: blocks }
|
|
|
|
- if (blocks = @blocks.select(&:suspend?)) && !blocks.empty?
|
|
|
|
%p= t('about.unavailable_content_description.suspended')
|
|
|
|
= render partial: 'domain_blocks', locals: { domain_blocks: blocks }
|
2019-09-19 12:09:05 +03:00
|
|
|
|
|
|
|
.column-4
|
|
|
|
%ul.table-of-contents
|
|
|
|
- @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'
|