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.

47 lines
1.8 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. .nav-center
  9. .nav-right
  10. - if user_signed_in?
  11. = link_to t('settings.back'), root_url, class: 'nav-link nav-button webapp-btn'
  12. - else
  13. = link_to t('auth.login'), new_user_session_path, class: 'webapp-btn nav-link nav-button'
  14. = link_to t('auth.register'), new_user_registration_path, class: 'webapp-btn nav-link nav-button'
  15. .container= yield
  16. .container
  17. .footer
  18. .grid
  19. .column-0
  20. %h4= t 'footer.resources'
  21. %ul
  22. %li= link_to t('about.terms'), terms_path
  23. %li= link_to t('about.privacy_policy'), terms_path
  24. .column-1
  25. %h4= t 'footer.developers'
  26. %ul
  27. %li= link_to t('about.documentation'), 'https://github.com/tootsuite/documentation'
  28. %li= link_to t('about.api'), 'https://github.com/tootsuite/documentation/blob/master/Using-the-API/API.md'
  29. .column-2
  30. %h4= link_to t('about.what_is_mastodon'), 'https://joinmastodon.org/'
  31. = link_to root_url, class: 'brand' do
  32. = render file: Rails.root.join('app', 'javascript', 'images', 'logo_transparent.svg')
  33. .column-3
  34. %h4= site_hostname
  35. %ul
  36. %li= link_to t('about.about_this'), about_more_path
  37. %li= "v#{Mastodon::Version.to_s}"
  38. .column-4
  39. %h4= t 'footer.more'
  40. %ul
  41. %li= link_to t('about.source_code'), Mastodon::Version.source_url
  42. %li= link_to 'joinmastodon.org', 'https://joinmastodon.org'
  43. = render template: 'layouts/application'