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.

52 lines
2.2 KiB

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