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.

71 lines
2.6 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. = render partial: 'og'
  7. .landing-page
  8. .header-wrapper
  9. .mascot-container
  10. = image_tag asset_pack_path('elephant-fren.png'), alt: '', role: 'presentation', class: 'mascot'
  11. .header
  12. .container.links
  13. .brand
  14. = link_to root_url do
  15. = image_tag asset_pack_path('logo_full.svg'), alt: 'Mastodon'
  16. %ul.nav
  17. %li
  18. - if user_signed_in?
  19. = link_to t('settings.back'), root_url, class: 'webapp-btn'
  20. - else
  21. = link_to t('auth.login'), new_user_session_path, class: 'webapp-btn'
  22. %li= link_to t('about.about_this'), about_more_path
  23. %li
  24. = link_to 'https://joinmastodon.org/' do
  25. = "#{t('about.other_instances')}"
  26. %i.fa.fa-external-link{ style: 'padding-left: 5px;' }
  27. .container.hero
  28. .floats
  29. %div{ role: 'presentation', class: 'float-1' }
  30. %div{ role: 'presentation', class: 'float-2' }
  31. %div{ role: 'presentation', class: 'float-3' }
  32. .heading
  33. %h1
  34. = @instance_presenter.site_title
  35. %small= t 'about.hosted_on', domain: site_hostname
  36. - if @instance_presenter.open_registrations
  37. = render 'registration'
  38. - else
  39. .closed-registrations-message
  40. %div
  41. - if @instance_presenter.closed_registrations_message.blank?
  42. %p= t('about.closed_registrations')
  43. - else
  44. = @instance_presenter.closed_registrations_message.html_safe
  45. = link_to t('about.find_another_instance'), 'https://joinmastodon.org/', class: 'button button-alternative button--block'
  46. .about-short
  47. .container
  48. %h3= t('about.description_headline', domain: site_hostname)
  49. %p= @instance_presenter.site_description.html_safe.presence || t('about.generic_description', domain: site_hostname)
  50. .features
  51. .container
  52. - if Setting.timeline_preview
  53. #mastodon-timeline{ data: { props: Oj.dump(default_props) } }
  54. .about-mastodon
  55. %h3= t 'about.what_is_mastodon'
  56. %p= t 'about.about_mastodon_html'
  57. %a.button.button-secondary{ href: 'https://joinmastodon.org/' }= t 'about.learn_more'
  58. = render 'features'
  59. .footer-links
  60. .container
  61. %p
  62. = link_to t('about.source_code'), @instance_presenter.source_url
  63. = " (#{@instance_presenter.version_number})"