application.html.haml 1.49 KB
Newer Older
1
!!!
2
%html{ lang: I18n.locale }
3 4
  %head
    %meta{:content => "text/html; charset=UTF-8", "http-equiv" => "Content-Type"}/
5
    %title= t('.title')
Eugen Rochko's avatar
Eugen Rochko committed
6

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

Eugen Rochko's avatar
Eugen Rochko committed
11 12 13
    %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
14
    %meta{ property: 'og:image', content: asset_pack_url('images/preview.jpg') }/
Eugen Rochko's avatar
Eugen Rochko committed
15 16 17 18 19
    %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' }/
20

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

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

        - if user_signed_in?
33 34
          %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
35

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

    = yield

    %hr/

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