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.

62 lines
2.2 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. = render partial: 'shared/og'
  6. .landing-page
  7. .header-wrapper.compact
  8. .header
  9. .container.links
  10. .brand
  11. = link_to root_url do
  12. = image_tag asset_pack_path('logo_full.svg'), alt: 'Mastodon'
  13. %ul.nav
  14. %li
  15. - if user_signed_in?
  16. = link_to t('settings.back'), root_url, class: 'webapp-btn'
  17. - else
  18. = link_to t('auth.login'), new_user_session_path, class: 'webapp-btn'
  19. %li= link_to t('about.about_this'), about_more_path
  20. %li
  21. = link_to 'https://joinmastodon.org/' do
  22. = "#{t('about.other_instances')}"
  23. %i.fa.fa-external-link{ style: 'padding-left: 5px;' }
  24. .container.hero
  25. .heading
  26. %h3= t('about.description_headline', domain: site_hostname)
  27. %p= @instance_presenter.site_description.html_safe.presence || t('about.generic_description', domain: site_hostname)
  28. .information-board
  29. .container
  30. .information-board-sections
  31. .section
  32. %span= t 'about.user_count_before'
  33. %strong= number_with_delimiter @instance_presenter.user_count
  34. %span= t 'about.user_count_after'
  35. .section
  36. %span= t 'about.status_count_before'
  37. %strong= number_with_delimiter @instance_presenter.status_count
  38. %span= t 'about.status_count_after'
  39. .section
  40. %span= t 'about.domain_count_before'
  41. %strong= number_with_delimiter @instance_presenter.domain_count
  42. %span= t 'about.domain_count_after'
  43. = render 'contact', contact: @instance_presenter
  44. .extended-description
  45. .container
  46. = @instance_presenter.site_extended_description.html_safe.presence || t('about.extended_description_html')
  47. .footer-links
  48. .container
  49. %p
  50. = link_to t('about.source_code'), @instance_presenter.source_url
  51. - if @instance_presenter.commit_hash == ""
  52. %strong= " (#{@instance_presenter.version_number})"
  53. - else
  54. %strong= "#{@instance_presenter.version_number}, "
  55. %strong= "#{@instance_presenter.commit_hash}"