public.html.haml 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. - content_for :header_tags do
  2. = javascript_pack_tag 'public', integrity: true, crossorigin: 'anonymous'
  3. - content_for :content do
  4. .public-layout
  5. .container
  6. %nav.header
  7. .nav-left
  8. = link_to root_url, class: 'brand' do
  9. = image_tag asset_pack_path('logo_full.svg'), alt: 'Mastodon'
  10. - if Setting.profile_directory
  11. = link_to t('directories.directory'), explore_path, class: 'nav-link optional'
  12. = link_to t('about.about_this'), about_more_path, class: 'nav-link optional'
  13. = link_to t('about.apps'), 'https://joinmastodon.org/apps', class: 'nav-link optional'
  14. .nav-center
  15. .nav-right
  16. - if user_signed_in?
  17. = link_to t('settings.back'), root_url, class: 'nav-link nav-button webapp-btn'
  18. - else
  19. = link_to t('auth.login'), new_user_session_path, class: 'webapp-btn nav-link nav-button'
  20. = link_to t('auth.register'), open_registrations? ? new_user_registration_path : 'https://joinmastodon.org/#getting-started', class: 'webapp-btn nav-link nav-button'
  21. .container= yield
  22. .container
  23. .footer
  24. .grid
  25. .column-0
  26. %h4= t 'footer.resources'
  27. %ul
  28. %li= link_to t('about.terms'), terms_path
  29. %li= link_to t('about.privacy_policy'), terms_path
  30. .column-1
  31. %h4= t 'footer.developers'
  32. %ul
  33. %li= link_to t('about.documentation'), 'https://docs.joinmastodon.org/'
  34. %li= link_to t('about.api'), 'https://docs.joinmastodon.org/api/guidelines/'
  35. .column-2
  36. %h4= link_to t('about.what_is_mastodon'), 'https://joinmastodon.org/'
  37. = link_to root_url, class: 'brand' do
  38. = render file: Rails.root.join('app', 'javascript', 'images', 'logo_transparent.svg')
  39. .column-3
  40. %h4= site_hostname
  41. %ul
  42. %li= link_to t('about.about_this'), about_more_path
  43. %li= "v#{Mastodon::Version.to_s}"
  44. .column-4
  45. %h4= t 'footer.more'
  46. %ul
  47. %li= link_to t('about.source_code'), Mastodon::Version.source_url
  48. %li= link_to t('about.apps'), 'https://joinmastodon.org/apps'
  49. = render template: 'layouts/application'