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

67 lines
2.6 KiB

  1. - content_for :page_title do
  2. = site_hostname
  3. - content_for :header_tags do
  4. = javascript_pack_tag 'public', integrity: true, crossorigin: 'anonymous'
  5. %meta{ property: 'og:site_name', content: site_title }/
  6. %meta{ property: 'og:url', content: about_url }/
  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_html')) }/
  10. %meta{ property: 'og:image', content: asset_pack_path('mastodon_small.jpg', protocol: :request) }/
  11. %meta{ property: 'og:image:width', content: '400' }/
  12. %meta{ property: 'og:image:height', content: '400' }/
  13. %meta{ property: 'twitter:card', content: 'summary' }/
  14. .landing-page
  15. .header-wrapper.compact
  16. .header
  17. .container.links
  18. .brand
  19. = link_to root_url do
  20. = image_tag asset_pack_path('logo_full.svg'), alt: 'Mastodon'
  21. %ul.nav
  22. %li
  23. - if user_signed_in?
  24. = link_to t('settings.back'), root_url, class: 'webapp-btn'
  25. - else
  26. = link_to t('auth.login'), new_user_session_path, class: 'webapp-btn'
  27. %li= link_to t('about.about_this'), about_more_path
  28. %li
  29. = link_to 'https://joinmastodon.org/' do
  30. = "#{t('about.other_instances')}"
  31. %i.fa.fa-external-link{ style: 'padding-left: 5px;' }
  32. .container.hero
  33. .heading
  34. %h3= t('about.description_headline', domain: site_hostname)
  35. %p= @instance_presenter.site_description.html_safe.presence || t('about.generic_description', domain: site_hostname)
  36. .information-board
  37. .container
  38. .information-board-sections
  39. .section
  40. %span= t 'about.user_count_before'
  41. %strong= number_with_delimiter @instance_presenter.user_count
  42. %span= t 'about.user_count_after'
  43. .section
  44. %span= t 'about.status_count_before'
  45. %strong= number_with_delimiter @instance_presenter.status_count
  46. %span= t 'about.status_count_after'
  47. .section
  48. %span= t 'about.domain_count_before'
  49. %strong= number_with_delimiter @instance_presenter.domain_count
  50. %span= t 'about.domain_count_after'
  51. = render 'contact', contact: @instance_presenter
  52. .extended-description
  53. .container
  54. = @instance_presenter.site_extended_description.html_safe.presence || t('about.extended_description_html')
  55. .footer-links
  56. .container
  57. %p
  58. = link_to t('about.source_code'), @instance_presenter.source_url
  59. = " (#{@instance_presenter.version_number})"