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

Eugen Rochko's avatar
Eugen Rochko committed
6 7 8 9 10 11 12 13 14 15 16
.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
        %strong= @twitter_count
        accounts
      - if twitter?
        .login-name
          %strong= current_user.twitter.display_name
          = fa_icon 'check'
17
      - else
Eugen Rochko's avatar
Eugen Rochko committed
18
        %span.login-btn Connect Twitter
19

Eugen Rochko's avatar
Eugen Rochko committed
20 21 22 23 24 25 26 27 28 29
  = 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
        %strong= @mastodon_count
        accounts
      - if mastodon?
        .login-name
          %strong= current_user.mastodon.display_name.presence || current_user.mastodon.uid
          = fa_icon 'check'
30
      - else
Eugen Rochko's avatar
Eugen Rochko committed
31
        %span.login-btn Connect Mastodon
32 33

%p
Eugen Rochko's avatar
Eugen Rochko committed
34
  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 or followers among them?