]> cat aescling's git repositories - mastodon.git/blob - app/views/about/more.html.haml
Fix "reason" prefix being shown with no reason for public blocks (#11908)
[mastodon.git] / app / views / about / more.html.haml
1 - content_for :page_title do
2 = site_hostname
3
4 - content_for :header_tags do
5 = javascript_pack_tag 'public', integrity: true, crossorigin: 'anonymous'
6 = render partial: 'shared/og'
7
8 .grid-4
9 .column-0
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'
13
14 .column-1
15 .landing-page__call-to-action{ dir: 'ltr' }
16 .row
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
26 .row__mascot
27 .landing-page__mascot
28 = image_tag @instance_presenter.mascot&.file&.url || asset_pack_path('media/images/elephant_ui_plane.svg'), alt: ''
29
30 .column-2
31 .contact-widget
32 %h4= t 'about.administered_by'
33
34 = account_link_to(@instance_presenter.contact_account)
35
36 - if @instance_presenter.site_contact_email.present?
37 %h4
38 = succeed ':' do
39 = t 'about.contact'
40
41 = mail_to @instance_presenter.site_contact_email, nil, title: @instance_presenter.site_contact_email
42
43 .column-3
44 = render 'application/flashes'
45
46 - if @contents.blank? && (!display_blocks? || @blocks&.empty?)
47 = nothing_here
48 - else
49 .box-widget
50 .rich-formatting
51 = @contents.html_safe
52
53 - if display_blocks? && !@blocks.empty?
54 %h2#unavailable-content= t('about.unavailable_content')
55
56 %p= t('about.unavailable_content_html')
57
58 - @blocks.each do |domain_block|
59 %p
60 %strong= "#{domain_block.domain}:"
61
62 - if domain_block.suspend?
63 = t('about.unavailable_content_description.suspended')
64 - else
65 = t('about.unavailable_content_description.silenced') if domain_block.silence?
66 = t('about.unavailable_content_description.rejecting_media') if domain_block.reject_media?
67
68 - if display_blocks_rationale? && domain_block.public_comment.present?
69 %strong= t('about.unavailable_content_description.reason')
70 = domain_block.public_comment
71
72 .column-4
73 %ul.table-of-contents
74 - @table_of_contents.each do |item|
75 %li
76 = link_to item.title, "##{item.anchor}"
77
78 - unless item.children.empty?
79 %ul
80 - item.children.each do |sub_item|
81 %li= link_to sub_item.title, "##{sub_item.anchor}"
82
83 - if display_blocks? && !@blocks.empty?
84 %li= link_to t('about.unavailable_content'), '#unavailable-content'
This page took 0.103571 seconds and 5 git commands to generate.