2016-10-06 22:27:58 +03:00
|
|
|
- content_for :header_tags do
|
2019-08-16 20:15:05 +03:00
|
|
|
= render_initial_state
|
2020-11-06 12:56:31 +02:00
|
|
|
= javascript_pack_tag 'public', crossorigin: 'anonymous'
|
2016-10-06 22:27:58 +03:00
|
|
|
|
2016-03-06 00:42:40 +02:00
|
|
|
- content_for :content do
|
2018-07-28 20:25:33 +03:00
|
|
|
.public-layout
|
2019-03-12 18:34:00 +02:00
|
|
|
- unless @hide_navbar
|
|
|
|
.container
|
|
|
|
%nav.header
|
|
|
|
.nav-left
|
|
|
|
= link_to root_url, class: 'brand' do
|
2022-06-09 23:25:23 +03:00
|
|
|
= logo_as_symbol(:wordmark)
|
2018-12-06 18:36:11 +02:00
|
|
|
|
2019-07-30 12:10:46 +03:00
|
|
|
- unless whitelist_mode?
|
|
|
|
= link_to t('about.about_this'), about_more_path, class: 'nav-link optional'
|
|
|
|
= link_to t('about.apps'), 'https://joinmastodon.org/apps', class: 'nav-link optional'
|
|
|
|
|
2019-03-12 18:34:00 +02:00
|
|
|
.nav-center
|
2019-07-30 12:10:46 +03:00
|
|
|
|
2019-03-12 18:34:00 +02:00
|
|
|
.nav-right
|
|
|
|
- if user_signed_in?
|
|
|
|
= link_to t('settings.back'), root_url, class: 'nav-link nav-button webapp-btn'
|
|
|
|
- else
|
2022-01-23 16:52:58 +02:00
|
|
|
= link_to_login t('auth.login'), class: 'webapp-btn nav-link nav-button'
|
2019-03-14 06:28:30 +02:00
|
|
|
= link_to t('auth.register'), available_sign_up_path, class: 'webapp-btn nav-link nav-button'
|
2018-07-28 20:25:33 +03:00
|
|
|
|
|
|
|
.container= yield
|
|
|
|
|
|
|
|
.container
|
|
|
|
.footer
|
|
|
|
.grid
|
|
|
|
.column-0
|
|
|
|
%h4= t 'footer.resources'
|
|
|
|
%ul
|
2022-09-29 07:22:12 +03:00
|
|
|
%li= link_to t('about.privacy_policy'), privacy_policy_path
|
2018-07-28 20:25:33 +03:00
|
|
|
.column-1
|
|
|
|
%h4= t 'footer.developers'
|
|
|
|
%ul
|
2018-10-06 08:33:36 +03:00
|
|
|
%li= link_to t('about.documentation'), 'https://docs.joinmastodon.org/'
|
2020-04-12 14:38:14 +03:00
|
|
|
%li= link_to t('about.api'), 'https://docs.joinmastodon.org/client/intro/'
|
2018-07-28 20:25:33 +03:00
|
|
|
.column-2
|
|
|
|
%h4= link_to t('about.what_is_mastodon'), 'https://joinmastodon.org/'
|
2022-06-09 23:25:23 +03:00
|
|
|
= link_to logo_as_symbol, root_url, class: 'brand'
|
2018-07-28 20:25:33 +03:00
|
|
|
.column-3
|
|
|
|
%h4= site_hostname
|
|
|
|
%ul
|
2021-06-27 23:31:28 +03:00
|
|
|
- unless whitelist_mode?
|
|
|
|
%li= link_to t('about.about_this'), about_more_path
|
2018-07-28 20:25:33 +03:00
|
|
|
%li= "v#{Mastodon::Version.to_s}"
|
|
|
|
.column-4
|
|
|
|
%h4= t 'footer.more'
|
|
|
|
%ul
|
|
|
|
%li= link_to t('about.source_code'), Mastodon::Version.source_url
|
2018-08-19 02:17:44 +03:00
|
|
|
%li= link_to t('about.apps'), 'https://joinmastodon.org/apps'
|
2022-02-13 03:52:34 +02:00
|
|
|
.legal-xs
|
|
|
|
= link_to "v#{Mastodon::Version.to_s}", Mastodon::Version.source_url
|
|
|
|
·
|
2022-09-29 07:22:12 +03:00
|
|
|
= link_to t('about.privacy_policy'), privacy_policy_path
|
2016-03-06 00:42:40 +02:00
|
|
|
|
2017-05-08 04:35:25 +03:00
|
|
|
= render template: 'layouts/application'
|