application.html.haml 1.5 KB
Newer Older
1 2 3 4
!!!
%html
  %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 8
    = csrf_meta_tags
    = stylesheet_link_tag 'application', media: 'all'
Eugen Rochko's avatar
Eugen Rochko committed
9
    = javascript_include_tag 'application'
10
    = javascript_pack_tag 'hello-world-bundle'
Eugen Rochko's avatar
Eugen Rochko committed
11

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

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

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

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

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

    = yield

    %hr/

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