index.html.haml 1.42 KB
Newer Older
Eugen Rochko's avatar
Eugen Rochko committed
1 2
.page-heading
  %h3
Eugen Rochko's avatar
Eugen Rochko committed
3
    Find your friends on Mastodon
Eugen Rochko's avatar
Eugen Rochko committed
4
    %small Login via Twitter to get started
5

Eugen Rochko's avatar
Eugen Rochko committed
6 7 8
= link_to 'https://joinmastodon.org', class: 'hero-link' do
  = image_tag 'preview.jpg', alt: 'Elephant friend, paperplanes and a trombone with the Mastodon logo in the center'

Eugen Rochko's avatar
Eugen Rochko committed
9 10 11 12 13
.login-buttons
  = content_tag twitter? ? :div : :a, href: user_twitter_omniauth_authorize_path, class: 'twitter' do
    .login-brand= image_tag 'twitter-square.png', alt: 'Twitter'
    .login-content
      .login-numbers
Eugen Rochko's avatar
Eugen Rochko committed
14
        %strong= number_with_delimiter @twitter_count
Eugen Rochko's avatar
Eugen Rochko committed
15
        connected
Eugen Rochko's avatar
Eugen Rochko committed
16 17
      - if twitter?
        .login-name
18
          %strong= current_user.twitter.display_name.presence || current_user.twitter.uid
Eugen Rochko's avatar
Eugen Rochko committed
19
          = fa_icon 'check'
20
      - else
Eugen Rochko's avatar
Eugen Rochko committed
21
        %span.login-btn Connect Twitter
22

Eugen Rochko's avatar
Eugen Rochko committed
23 24 25 26
  = content_tag mastodon? ? :div : :a, href: user_mastodon_omniauth_authorize_path, class: 'mastodon' do
    .login-brand= image_tag 'logo.svg', alt: 'Mastodon'
    .login-content
      .login-numbers
Eugen Rochko's avatar
Eugen Rochko committed
27
        %strong= number_with_delimiter @mastodon_count
Eugen Rochko's avatar
Eugen Rochko committed
28
        connected
Eugen Rochko's avatar
Eugen Rochko committed
29 30 31 32
      - if mastodon?
        .login-name
          %strong= current_user.mastodon.display_name.presence || current_user.mastodon.uid
          = fa_icon 'check'
33
      - else
Eugen Rochko's avatar
Eugen Rochko committed
34
        %span.login-btn Connect Mastodon
35 36

%p
Eugen Rochko's avatar
Eugen Rochko committed
37
  This website uses a database of Twitter users and Mastodon users who signed in here to match them together across multiple Mastodon instances. Are your friends among them?