闭社主体 forked from https://github.com/tootsuite/mastodon
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.

57 lines
2.2 KiB

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