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.

53 lines
2.1 KiB

  1. - content_for :header_tags do
  2. = javascript_pack_tag 'public', integrity: true, crossorigin: 'anonymous'
  3. - content_for :content do
  4. .public-layout
  5. - unless @hide_navbar
  6. .container
  7. %nav.header
  8. .nav-left
  9. = link_to root_url, class: 'brand' do
  10. = image_pack_tag 'logo_full.svg', alt: 'Mastodon'
  11. = link_to t('directories.directory'), explore_path, class: 'nav-link optional' if Setting.profile_directory
  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'), available_sign_up_path, 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 svg_logo, root_url, class: 'brand'
  38. .column-3
  39. %h4= site_hostname
  40. %ul
  41. %li= link_to t('about.about_this'), about_more_path
  42. %li= "v#{Mastodon::Version.to_s}"
  43. .column-4
  44. %h4= t 'footer.more'
  45. %ul
  46. %li= link_to t('about.source_code'), Mastodon::Version.source_url
  47. %li= link_to t('about.apps'), 'https://joinmastodon.org/apps'
  48. = render template: 'layouts/application'