public.html.haml 1.53 KB
Newer Older
Rob Colbert's avatar
Rob Colbert committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14
- content_for :header_tags do
  = javascript_pack_tag 'public', integrity: true, crossorigin: 'anonymous'

- content_for :content do
  .public-layout
    .background-svg
    - unless @hide_navbar
      %nav.header
        .header-container
          .nav-left
            = link_to root_url, class: 'brand' do
              = image_pack_tag 'gab_logo.svg', alt: 'Gab Social'
            = link_to t('home'), root_url, class: 'nav-link optional'
            = link_to t('about.about_this'), about_path, class: 'nav-link'
15
            = link_to 'Apps', 'https://apps.gab.com', class: 'nav-link'
Rob Colbert's avatar
Rob Colbert committed
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
          .nav-center
          .nav-right
            - if user_signed_in?
              = link_to t('settings.back'), root_url, class: 'nav-link nav-button webapp-btn'
            - else
              .hidden-sm
                = render 'about/login'
              .visible-sm
                = link_to t('auth.login'), new_user_session_path, class: 'webapp-btn nav-link nav-button'

    .container= yield

    .footer
      .footer-container
        .copyright
          %span= "2019 Gab AI Inc. All Rights Reserved."
        %ul
          %li= link_to t('about.investors'), about_investors_path
mgabdev's avatar
mgabdev committed
34 35 36
          %li= link_to 'Terms of Sale', about_sales_path
          %li= link_to 'DMCA', about_dmca_path
          %li= link_to 'Source Code', about_path + "#opensource"
37
          %li= mail_to 'support@gab.com', 'Press'
mgabdev's avatar
mgabdev committed
38 39
          %li= link_to 'Terms of Service', about_tos_path
          %li= link_to 'Privacy Policy', about_privacy_path
Rob Colbert's avatar
Rob Colbert committed
40 41

= render template: 'layouts/application'