闭社主体 forked from https://github.com/tootsuite/mastodon
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

80 lines
3.2 KiB

  1. - content_for :page_title do
  2. = site_hostname
  3. - content_for :header_tags do
  4. %script#initial-state{ type: 'application/json' }!= json_escape(@initial_state_json)
  5. = javascript_pack_tag 'about', integrity: true, crossorigin: 'anonymous'
  6. %meta{ property: 'og:site_name', content: site_title }/
  7. %meta{ property: 'og:url', content: about_url }/
  8. %meta{ property: 'og:type', content: 'website' }/
  9. %meta{ property: 'og:title', content: site_hostname }/
  10. %meta{ property: 'og:description', content: strip_tags(@instance_presenter.site_description.presence || t('about.about_mastodon_html')) }/
  11. %meta{ property: 'og:image', content: asset_pack_path('mastodon_small.jpg', protocol: :request) }/
  12. %meta{ property: 'og:image:width', content: '400' }/
  13. %meta{ property: 'og:image:height', content: '400' }/
  14. %meta{ property: 'twitter:card', content: 'summary' }/
  15. .landing-page
  16. .header-wrapper
  17. .mascot-container
  18. = image_tag asset_pack_path('elephant-fren.png'), alt: '', role: 'presentation', class: 'mascot'
  19. .header
  20. .container.links
  21. .brand
  22. = link_to root_url do
  23. = image_tag asset_pack_path('logo_full.svg'), alt: 'Mastodon'
  24. %ul.nav
  25. %li
  26. - if user_signed_in?
  27. = link_to t('settings.back'), root_url, class: 'webapp-btn'
  28. - else
  29. = link_to t('auth.login'), new_user_session_path, class: 'webapp-btn'
  30. %li= link_to t('about.about_this'), about_more_path
  31. %li
  32. = link_to 'https://joinmastodon.org/' do
  33. = "#{t('about.other_instances')}"
  34. %i.fa.fa-external-link{ style: 'padding-left: 5px;' }
  35. .container.hero
  36. .floats
  37. %div{ role: 'presentation', class: 'float-1' }
  38. %div{ role: 'presentation', class: 'float-2' }
  39. %div{ role: 'presentation', class: 'float-3' }
  40. .heading
  41. %h1
  42. = @instance_presenter.site_title
  43. %small= t 'about.hosted_on', domain: site_hostname
  44. - if @instance_presenter.open_registrations
  45. = render 'registration'
  46. - else
  47. .closed-registrations-message
  48. %div
  49. - if @instance_presenter.closed_registrations_message.blank?
  50. %p= t('about.closed_registrations')
  51. - else
  52. = @instance_presenter.closed_registrations_message.html_safe
  53. = link_to t('about.find_another_instance'), 'https://joinmastodon.org/', class: 'button button-alternative button--block'
  54. .about-short
  55. .container
  56. %h3= t('about.description_headline', domain: site_hostname)
  57. %p= @instance_presenter.site_description.html_safe.presence || t('about.generic_description', domain: site_hostname)
  58. .features
  59. .container
  60. - if Setting.timeline_preview
  61. #mastodon-timeline{ data: { props: Oj.dump(default_props) } }
  62. .about-mastodon
  63. %h3= t 'about.what_is_mastodon'
  64. %p= t 'about.about_mastodon_html'
  65. %a.button.button-secondary{ href: 'https://joinmastodon.org/' }= t 'about.learn_more'
  66. = render 'features'
  67. .footer-links
  68. .container
  69. %p
  70. = link_to t('about.source_code'), @instance_presenter.source_url
  71. = " (#{@instance_presenter.version_number})"