Module: Omnisocial::AuthHelper

Defined in:
app/helpers/omnisocial/auth_helper.rb

Instance Method Summary collapse

Instance Method Details

#auth_request_path(options = {}) ⇒ Object



3
4
5
# File 'app/helpers/omnisocial/auth_helper.rb', line 3

def auth_request_path(options = {})
  "/auth/#{options[:service]}"
end

#big_facebook_login_buttonObject



11
12
13
# File 'app/helpers/omnisocial/auth_helper.rb', line 11

def 
  (:a, (:span, 'Sign in with Facebook'), :class => 'omnisocial-button facebook', :href => auth_request_path(:service => 'facebook'))
end

#big_twitter_login_buttonObject



7
8
9
# File 'app/helpers/omnisocial/auth_helper.rb', line 7

def 
  (:a, (:span, 'Sign in with Twitter'), :class => 'omnisocial-button twitter', :href => auth_request_path(:service => 'twitter'))
end

#facebook_login_buttonObject



19
20
21
# File 'app/helpers/omnisocial/auth_helper.rb', line 19

def 
  (:a, (:img, :src => '/images/omnisocial/signin_facebook.png', :alt => 'Sign in with Facebook'), :href => auth_request_path(:service => 'facebook'))
end

#twitter_login_buttonObject



15
16
17
# File 'app/helpers/omnisocial/auth_helper.rb', line 15

def 
  (:a, (:img, :src => '/images/omnisocial/signin_twitter.png', :alt => 'Sign in with Twitter'), :href => auth_request_path(:service => 'twitter'))
end