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.

87 lines
3.6 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. = simple_form_for(:user, url: user_registration_path) do |f|
  22. = f.simple_fields_for :account do |ff|
  23. = ff.input :username, autofocus: true, placeholder: t('simple_form.labels.defaults.username'), required: true, input_html: { 'aria-label' => t('simple_form.labels.defaults.username') }
  24. = f.input :email, placeholder: t('simple_form.labels.defaults.email'), required: true, input_html: { 'aria-label' => t('simple_form.labels.defaults.email') }
  25. = f.input :password, autocomplete: "off", placeholder: t('simple_form.labels.defaults.password'), required: true, input_html: { 'aria-label' => t('simple_form.labels.defaults.password') }
  26. = 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') }
  27. .actions
  28. = f.button :button, t('about.get_started'), type: :submit
  29. .info
  30. = link_to t('auth.login'), new_user_session_path, class: 'webapp-btn'
  31. ·
  32. = link_to t('about.about_this'), about_more_path
  33. %h3= t('about.features_headline')
  34. .features-list
  35. .features-list__column
  36. %ul.fa-ul
  37. %li
  38. = fa_icon('li check-square')
  39. = t 'about.features.chronology'
  40. %li
  41. = fa_icon('li check-square')
  42. = t 'about.features.public'
  43. %li
  44. = fa_icon('li check-square')
  45. = t 'about.features.characters'
  46. %li
  47. = fa_icon('li check-square')
  48. = t 'about.features.gifv'
  49. .features-list__column
  50. %ul.fa-ul
  51. %li
  52. = fa_icon('li check-square')
  53. = t 'about.features.privacy'
  54. %li
  55. = fa_icon('li check-square')
  56. = t 'about.features.blocks'
  57. %li
  58. = fa_icon('li check-square')
  59. = t 'about.features.ethics'
  60. %li
  61. = fa_icon('li check-square')
  62. = t 'about.features.api'
  63. - unless @description.blank?
  64. %h3= t('about.description_headline', domain: Rails.configuration.x.local_domain)
  65. %p= @description.html_safe
  66. .actions
  67. .info
  68. = link_to t('about.terms'), terms_path
  69. ·
  70. = link_to t('about.apps'), 'https://github.com/tootsuite/mastodon/blob/master/docs/Using-Mastodon/Apps.md'
  71. ·
  72. = link_to t('about.source_code'), 'https://github.com/tootsuite/mastodon'
  73. ·
  74. = link_to t('about.other_instances'), 'https://github.com/tootsuite/mastodon/blob/master/docs/Using-Mastodon/List-of-Mastodon-instances.md'