闭社主体 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.

86 lines
3.0 KiB

  1. - content_for :header_tags do
  2. = javascript_include_tag 'application_public', integrity: true
  3. - content_for :page_title do
  4. = site_hostname
  5. - content_for :header_tags do
  6. %meta{ property: 'og:site_name', content: site_title }/
  7. %meta{ property: 'og:type', content: 'website' }/
  8. %meta{ property: 'og:title', content: site_hostname }/
  9. %meta{ property: 'og:description', content: strip_tags(@instance_presenter.site_description.presence || t('about.about_mastodon')) }/
  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. = Setting.site_title
  18. %p= t('about.about_mastodon').html_safe
  19. .screenshot-with-signup
  20. .mascot= image_tag 'fluffy-elephant-friend.png'
  21. - if @instance_presenter.open_registrations
  22. = render 'registration'
  23. - else
  24. .closed-registrations-message
  25. - if @instance_presenter.closed_registrations_message.blank?
  26. %p= t('about.closed_registrations')
  27. - else
  28. = @instance_presenter.closed_registrations_message.html_safe
  29. .info
  30. = link_to t('auth.login'), new_user_session_path, class: 'webapp-btn'
  31. ·
  32. = link_to t('about.other_instances'), 'https://github.com/tootsuite/documentation/blob/master/Using-Mastodon/List-of-Mastodon-instances.md'
  33. ·
  34. = link_to t('about.about_this'), about_more_path
  35. %h3= t('about.features_headline')
  36. .features-list
  37. .features-list__column
  38. %ul.fa-ul
  39. %li
  40. = fa_icon('li check-square')
  41. = t 'about.features.chronology'
  42. %li
  43. = fa_icon('li check-square')
  44. = t 'about.features.public'
  45. %li
  46. = fa_icon('li check-square')
  47. = t 'about.features.characters'
  48. %li
  49. = fa_icon('li check-square')
  50. = t 'about.features.gifv'
  51. .features-list__column
  52. %ul.fa-ul
  53. %li
  54. = fa_icon('li check-square')
  55. = t 'about.features.privacy'
  56. %li
  57. = fa_icon('li check-square')
  58. = t 'about.features.blocks'
  59. %li
  60. = fa_icon('li check-square')
  61. = t 'about.features.ethics'
  62. %li
  63. = fa_icon('li check-square')
  64. = t 'about.features.api'
  65. - unless @instance_presenter.site_description.blank?
  66. %h3= t('about.description_headline', domain: site_hostname)
  67. %p= @instance_presenter.site_description.html_safe
  68. .actions
  69. .info
  70. = link_to t('about.terms'), terms_path
  71. ·
  72. = link_to t('about.apps'), 'https://github.com/tootsuite/documentation/blob/master/Using-Mastodon/Apps.md'
  73. ·
  74. = link_to t('about.source_code'), 'https://github.com/tootsuite/mastodon'
  75. ·
  76. = link_to t('about.other_instances'), 'https://github.com/tootsuite/documentation/blob/master/Using-Mastodon/List-of-Mastodon-instances.md'