From 47a4178b50515e8866135815d86d95959ff2d15e Mon Sep 17 00:00:00 2001 From: Christoph Haas Date: Sun, 23 Apr 2017 18:00:03 +0200 Subject: [PATCH] Added alternative way to create SSO login buttons --- app/views/devise/sessions/new.slim | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/views/devise/sessions/new.slim b/app/views/devise/sessions/new.slim index fc2c79d..824085b 100644 --- a/app/views/devise/sessions/new.slim +++ b/app/views/devise/sessions/new.slim @@ -25,6 +25,13 @@ .row .text-center + + // Alternative way to display buttons without images. (Amazon wants their own button though.) + / p + / = link_to (fa_icon 'google', text: '- Login with Google'), user_google_oauth2_omniauth_authorize_path, class: 'button secondary large' + / p + / = link_to (fa_icon 'github', text: '- Login with Google'), user_google_oauth2_omniauth_authorize_path, class: 'button secondary large' + p = link_to image_tag('/images/sso/google.png'), user_google_oauth2_omniauth_authorize_path p