Sha256: 6cbe897cf23e152d33241121e6be31059931cc5813821ff21ad4035478afca1c

Contents?: true

Size: 629 Bytes

Versions: 1

Compression:

Stored size: 629 Bytes

Contents

module Socialite
  module Helpers
    module Authentication
      def identity_request_path(options={})
        ['/auth', options[:service]].join('/')
      end

      def twitter_login_button
        content_tag(:a, content_tag(:span, 'Sign in with Twitter'), :class => 'socialite_button twitter', :href => identity_request_path(:service => 'twitter'), :rel => 'external')
      end

      def facebook_login_button
        content_tag(:a, content_tag(:span, 'Sign in with Facebook'), :class => 'socialite_button facebook', :href => identity_request_path(:service => 'facebook'), :rel => 'external')
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
socialite-0.1.0.pre lib/socialite/helpers/authentication.rb