about summary refs log tree commit diff
path: root/app/views/layouts/public.html.haml
blob: ca9dac8bb0308bae9060a54f69e7b7f363d4f665 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
- content_for :header_tags do
  = javascript_pack_tag 'public', integrity: true, crossorigin: 'anonymous'

- content_for :content do
  .public-layout
    .container
      %nav.header
        .nav-left
          = link_to root_url, class: 'brand' do
            = image_tag asset_pack_path('logo_full.svg'), alt: 'Mastodon'
        .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'
            = link_to t('auth.register'), new_user_registration_path, class: 'webapp-btn nav-link nav-button'

    .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
              %li= link_to t('about.documentation'), 'https://github.com/tootsuite/documentation'
              %li= link_to t('about.api'), 'https://github.com/tootsuite/documentation/blob/master/Using-the-API/API.md'
          .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
              %li= link_to t('about.apps'), 'https://joinmastodon.org/apps'

= render template: 'layouts/application'