application.html.haml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. !!!
  2. %html
  3. %head
  4. %meta{:content => "text/html; charset=UTF-8", "http-equiv" => "Content-Type"}/
  5. %title Find your Twitter friends on Mastodon - Mastodon Bridge
  6. = csrf_meta_tags
  7. = stylesheet_link_tag 'application', media: 'all'
  8. = javascript_include_tag 'application'
  9. %meta{ property: 'og:type', content: 'article' }/
  10. %meta{ property: 'og:title', content: 'Find your Twitter friends on Mastodon' }/
  11. %meta{ property: 'og:description', content: 'This bridge tool matches you with your friends in the decentralized Mastodon network' }/
  12. %meta{ property: 'og:image', content: image_url('preview.jpg') }/
  13. %meta{ property: 'og:url', content: root_url }/
  14. %meta{ property: 'og:site_name', content: 'Mastodon Bridge' }/
  15. %meta{ name: 'twitter:card', content: 'summary' }/
  16. %meta{ name: 'twitter:site', content: '@MastodonProject' }/
  17. %body
  18. .header
  19. %ul.left
  20. %li
  21. = link_to root_path, class: 'brand' do
  22. = image_tag 'logo_full.svg', alt: 'Mastodon Bridge'
  23. %ul.right
  24. - if twitter?
  25. %li= link_to 'Friends', friends_path
  26. - if user_signed_in?
  27. %li= link_to 'Account', account_path
  28. %li= link_to 'Logout', destroy_user_session_path, method: :delete
  29. - if flash[:notice]
  30. .flash-message
  31. %strong Success!
  32. = flash[:notice]
  33. - if flash[:alert]
  34. .flash-message
  35. %strong Oops!
  36. = flash[:alert]
  37. = yield
  38. %hr/
  39. %p.footer
  40. This website is run by
  41. %a{:href => "https://mastodon.social/@Mastodon"} @Mastodon@mastodon.social
  42. \/
  43. = succeed "." do
  44. %a{:href => "https://twitter.com/MastodonProject"} @MastodonProject
  45. %a{:href => "https://github.com/tootsuite/mastodon-bridge", :target => "_blank"} Source code