application.html.haml 1.52 KB
Newer Older
1
!!!
2
%html{ lang: I18n.locale }
3
  %head
4 5 6
    %meta{ charset: 'UTF-8' }/
    %meta{ name: 'viewport', content: 'width=device-width,initial-scale=1' }

7
    %title= t('.title')
Eugen Rochko's avatar
Eugen Rochko committed
8

9
    = csrf_meta_tags
Yamagishi Kazutoshi's avatar
Yamagishi Kazutoshi committed
10 11
    = stylesheet_pack_tag 'application', media: 'all'
    = javascript_pack_tag 'application'
Eugen Rochko's avatar
Eugen Rochko committed
12

Eugen Rochko's avatar
Eugen Rochko committed
13 14 15
    %meta{ property: 'og:type', content: 'article' }/
    %meta{ property: 'og:title', content: 'Find your Twitter friends on Mastodon' }/
    %meta{ property: 'og:description', content: 'This bridge tool matches you with your friends in the decentralized Mastodon network' }/
Yamagishi Kazutoshi's avatar
Yamagishi Kazutoshi committed
16
    %meta{ property: 'og:image', content: asset_pack_url('images/preview.jpg') }/
Eugen Rochko's avatar
Eugen Rochko committed
17 18 19 20 21
    %meta{ property: 'og:url', content: root_url }/
    %meta{ property: 'og:site_name', content: 'Mastodon Bridge' }/

    %meta{ name: 'twitter:card', content: 'summary' }/
    %meta{ name: 'twitter:site', content: '@MastodonProject' }/
22

23
  %body
Eugen Rochko's avatar
Eugen Rochko committed
24 25 26 27
    .header
      %ul.left
        %li
          = link_to root_path, class: 'brand' do
Yamagishi Kazutoshi's avatar
Yamagishi Kazutoshi committed
28
            = image_pack_tag 'images/logo_full.svg', alt: 'Mastodon Bridge'
Eugen Rochko's avatar
Eugen Rochko committed
29 30

      %ul.right
Eugen Rochko's avatar
Eugen Rochko committed
31
        - if twitter?
32
          %li= link_to t('.friends'), friends_path
Eugen Rochko's avatar
Eugen Rochko committed
33 34

        - if user_signed_in?
35 36
          %li= link_to t('.account'), account_path
          %li= link_to t('.logout'), destroy_user_session_path, method: :delete
Eugen Rochko's avatar
Eugen Rochko committed
37

38 39 40 41 42 43 44 45 46 47 48 49 50
    - if flash[:notice]
      .flash-message
        %strong Success!
        = flash[:notice]
    - if flash[:alert]
      .flash-message
        %strong Oops!
        = flash[:alert]

    = yield

    %hr/

51
    %p.footer= t('.footer_html')