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.

100 lines
4.2 KiB

  1. - content_for :header_tags do
  2. = javascript_include_tag 'application_public'
  3. - content_for :page_title do
  4. = Rails.configuration.x.local_domain
  5. - content_for :header_tags do
  6. %meta{ property: 'og:site_name', content: 'Mastodon' }/
  7. %meta{ property: 'og:type', content: 'website' }/
  8. %meta{ property: 'og:title', content: Rails.configuration.x.local_domain }/
  9. %meta{ property: 'og:description', content: @description.blank? ? "Mastodon is a free, open-source social network server. A decentralized alternative to commercial platforms, it avoids the risks of a single company monopolizing your communication. Anyone can run Mastodon and participate in the social network seamlessly" : strip_tags(@description) }/
  10. %meta{ property: 'og:image', content: asset_url('mastodon_small.jpg') }/
  11. %meta{ property: 'og:image:width', content: '400' }/
  12. %meta{ property: 'og:image:height', content: '400' }/
  13. %meta{ property: 'twitter:card', content: 'summary' }/
  14. .wrapper
  15. %h1
  16. = image_tag 'logo.png'
  17. Mastodon
  18. %p= t('about.about_mastodon').html_safe
  19. .screenshot-with-signup
  20. .mascot= image_tag 'fluffy-elephant-friend.png'
  21. - if @open_registrations
  22. = simple_form_for(@user, url: user_registration_path) do |f|
  23. = f.simple_fields_for :account do |ff|
  24. = ff.input :username, autofocus: true, placeholder: t('simple_form.labels.defaults.username'), required: true, input_html: { 'aria-label' => t('simple_form.labels.defaults.username') }
  25. = f.input :email, placeholder: t('simple_form.labels.defaults.email'), required: true, input_html: { 'aria-label' => t('simple_form.labels.defaults.email') }
  26. = f.input :password, autocomplete: "off", placeholder: t('simple_form.labels.defaults.password'), required: true, input_html: { 'aria-label' => t('simple_form.labels.defaults.password') }
  27. = f.input :password_confirmation, autocomplete: "off", placeholder: t('simple_form.labels.defaults.confirm_password'), required: true, input_html: { 'aria-label' => t('simple_form.labels.defaults.confirm_password') }
  28. .actions
  29. = f.button :button, t('about.get_started'), type: :submit
  30. .info
  31. = link_to t('auth.login'), new_user_session_path, class: 'webapp-btn'
  32. ·
  33. = link_to t('about.about_this'), about_more_path
  34. - else
  35. .closed-registrations-message
  36. - if @closed_registrations_message.blank?
  37. %p= t('about.closed_registrations')
  38. - else
  39. = @closed_registrations_message.html_safe
  40. .info
  41. = link_to t('auth.login'), new_user_session_path, class: 'webapp-btn'
  42. ·
  43. = link_to t('about.other_instances'), 'https://github.com/tootsuite/mastodon/blob/master/docs/Using-Mastodon/List-of-Mastodon-instances.md'
  44. ·
  45. = link_to t('about.about_this'), about_more_path
  46. %h3= t('about.features_headline')
  47. .features-list
  48. .features-list__column
  49. %ul.fa-ul
  50. %li
  51. = fa_icon('li check-square')
  52. = t 'about.features.chronology'
  53. %li
  54. = fa_icon('li check-square')
  55. = t 'about.features.public'
  56. %li
  57. = fa_icon('li check-square')
  58. = t 'about.features.characters'
  59. %li
  60. = fa_icon('li check-square')
  61. = t 'about.features.gifv'
  62. .features-list__column
  63. %ul.fa-ul
  64. %li
  65. = fa_icon('li check-square')
  66. = t 'about.features.privacy'
  67. %li
  68. = fa_icon('li check-square')
  69. = t 'about.features.blocks'
  70. %li
  71. = fa_icon('li check-square')
  72. = t 'about.features.ethics'
  73. %li
  74. = fa_icon('li check-square')
  75. = t 'about.features.api'
  76. - unless @description.blank?
  77. %h3= t('about.description_headline', domain: Rails.configuration.x.local_domain)
  78. %p= @description.html_safe
  79. .actions
  80. .info
  81. = link_to t('about.terms'), terms_path
  82. ·
  83. = link_to t('about.apps'), 'https://github.com/tootsuite/mastodon/blob/master/docs/Using-Mastodon/Apps.md'
  84. ·
  85. = link_to t('about.source_code'), 'https://github.com/tootsuite/mastodon'
  86. ·
  87. = link_to t('about.other_instances'), 'https://github.com/tootsuite/mastodon/blob/master/docs/Using-Mastodon/List-of-Mastodon-instances.md'