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

87 lines
3.1 KiB

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