Sha256: 7b6d8c01a8f8432932f4b2bc43401bc16eed862cdb1aa6d36852ede29cc93ca1
Contents?: true
Size: 1.31 KB
Versions: 1
Compression:
Stored size: 1.31 KB
Contents
module Omnisocial module AuthHelper def auth_request_path(options = {}) "/auth/#{options[:service]}" end def big_twitter_login_button content_tag(:a, content_tag(:span, 'Sign in with Twitter'), :class => 'omnisocial-button twitter', :href => auth_request_path(:service => 'twitter')) end def big_facebook_login_button content_tag(:a, content_tag(:span, 'Sign in with Facebook'), :class => 'omnisocial-button facebook', :href => auth_request_path(:service => 'facebook')) end def twitter_login_button content_tag(:a, image_tag('/images/omnisocial/signin_twitter.png', :alt => 'Sign in with Twitter'), :href => auth_request_path(:service => 'twitter')) end def facebook_login_button content_tag(:a, image_tag('/images/omnisocial/signin_facebook.png', :alt => 'Sign in with Facebook'), :href => auth_request_path(:service => 'facebook')) end def linkedin_login_button content_tag(:a, content_tag(:img, :src => '/images/omnisocial/signin_linked_in.png', :alt => 'Sign in with LinkeIn'), :href => auth_request_path(:service => 'linked_in')) end def big_linkedin_login_button content_tag(:a, content_tag(:span, 'Sign in with LinkedIn'), :class => 'omnisocial-button linkedin', :href => auth_request_path(:service => 'linked_in')) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
elecnix-omnisocial-0.1.5 | app/helpers/omnisocial/auth_helper.rb |