2016-10-06 12:27:58 -07:00
|
|
|
- content_for :header_tags do
|
2017-05-02 17:04:16 -07:00
|
|
|
= javascript_pack_tag 'public', integrity: true, crossorigin: 'anonymous'
|
2016-10-06 12:27:58 -07:00
|
|
|
|
2016-03-05 14:42:40 -08:00
|
|
|
- content_for :content do
|
2018-07-28 10:25:33 -07:00
|
|
|
.public-layout
|
|
|
|
.container
|
|
|
|
%nav.header
|
|
|
|
.nav-left
|
|
|
|
= link_to root_url, class: 'brand' do
|
|
|
|
= image_tag asset_pack_path('logo_full.svg'), alt: 'Mastodon'
|
2018-12-06 08:36:11 -08:00
|
|
|
|
2018-12-11 10:18:29 -08:00
|
|
|
- if Setting.profile_directory
|
|
|
|
= link_to t('directories.directory'), explore_path, class: 'nav-link'
|
2018-12-06 08:36:11 -08:00
|
|
|
= link_to t('about.about_this'), about_more_path, class: 'nav-link'
|
|
|
|
= link_to t('about.apps'), 'https://joinmastodon.org/apps', class: 'nav-link'
|
2018-07-28 10:25:33 -07:00
|
|
|
.nav-center
|
|
|
|
.nav-right
|
|
|
|
- if user_signed_in?
|
|
|
|
= link_to t('settings.back'), root_url, class: 'nav-link nav-button webapp-btn'
|
|
|
|
- else
|
|
|
|
= link_to t('auth.login'), new_user_session_path, class: 'webapp-btn nav-link nav-button'
|
2018-08-23 10:11:41 -07:00
|
|
|
= link_to t('auth.register'), open_registrations? ? new_user_registration_path : 'https://joinmastodon.org/#getting-started', class: 'webapp-btn nav-link nav-button'
|
2018-07-28 10:25:33 -07:00
|
|
|
|
|
|
|
.container= yield
|
|
|
|
|
|
|
|
.container
|
|
|
|
.footer
|
|
|
|
.grid
|
|
|
|
.column-0
|
|
|
|
%h4= t 'footer.resources'
|
|
|
|
%ul
|
|
|
|
%li= link_to t('about.terms'), terms_path
|
|
|
|
%li= link_to t('about.privacy_policy'), terms_path
|
|
|
|
.column-1
|
|
|
|
%h4= t 'footer.developers'
|
|
|
|
%ul
|
2018-10-05 22:33:36 -07:00
|
|
|
%li= link_to t('about.documentation'), 'https://docs.joinmastodon.org/'
|
|
|
|
%li= link_to t('about.api'), 'https://docs.joinmastodon.org/api/guidelines/'
|
2018-07-28 10:25:33 -07:00
|
|
|
.column-2
|
|
|
|
%h4= link_to t('about.what_is_mastodon'), 'https://joinmastodon.org/'
|
|
|
|
|
|
|
|
= link_to root_url, class: 'brand' do
|
|
|
|
= render file: Rails.root.join('app', 'javascript', 'images', 'logo_transparent.svg')
|
|
|
|
.column-3
|
|
|
|
%h4= site_hostname
|
|
|
|
%ul
|
|
|
|
%li= link_to t('about.about_this'), about_more_path
|
|
|
|
%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-18 16:17:44 -07:00
|
|
|
%li= link_to t('about.apps'), 'https://joinmastodon.org/apps'
|
2016-03-05 14:42:40 -08:00
|
|
|
|
2017-05-07 18:35:25 -07:00
|
|
|
= render template: 'layouts/application'
|