application.html.haml 1.83 KB
Newer Older
1 2 3 4
!!!
%html
  %head
    %meta{:content => "text/html; charset=UTF-8", "http-equiv" => "Content-Type"}/
Eugen Rochko's avatar
Eugen Rochko committed
5
    %title Find your Twitter friends on Mastodon - Mastodon Bridge
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?
Eugen Rochko's avatar
Eugen Rochko committed
31 32 33 34 35 36
          %li= link_to 'Friends', friends_path

        - if user_signed_in?
          %li= link_to 'Account', account_path
          %li= link_to 'Logout', destroy_user_session_path, method: :delete

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

    = yield

    %hr/

    %p.footer
      This website is run by
Eugen Rochko's avatar
Eugen Rochko committed
52
      %a{:href => "https://mastodon.social/@Mastodon"} @Mastodon@mastodon.social
53 54
      \/
      = succeed "." do
Eugen Rochko's avatar
Eugen Rochko committed
55
        %a{:href => "https://twitter.com/MastodonProject"} @MastodonProject
56 57
      %br/
      %a{:href => "https://source.joinmastodon.org/mastodon/bridge", :target => "_blank"} Source code