OpenID auth using Launchpad and Stackexchange works
This commit is contained in:
parent
2c135e1ca0
commit
4bad4d3a36
7 changed files with 38 additions and 86 deletions
|
|
@ -38,13 +38,18 @@
|
|||
/ = link_to "Sign in with Google", user_google_oauth2_omniauth_authorize_path
|
||||
|
||||
= link_to "Sign in with Launchpad", user_launchpad_omniauth_authorize_path
|
||||
= link_to "Sign in with StackExchange", user_stackexchange_omniauth_authorize_path
|
||||
|
||||
div
|
||||
= link_to image_tag('/images/sso/google.png'), user_google_oauth2_omniauth_authorize_path
|
||||
/ div
|
||||
/ = link_to image_tag('/images/sso/google.png'), user_google_oauth2_omniauth_authorize_path
|
||||
|
||||
div
|
||||
= link_to image_tag('/images/sso/amazon.png'), user_amazon_omniauth_authorize_path
|
||||
|
||||
div
|
||||
stackexchange
|
||||
/ div
|
||||
/ = link_to "google new", user_google_omniauth_authorize_path
|
||||
|
||||
/
|
||||
/ div
|
||||
/ = link_to image_tag('/images/sso/amazon.png'), user_amazon_omniauth_authorize_path
|
||||
/
|
||||
/ div
|
||||
/ stackexchange
|
||||
/
|
||||
|
|
|
|||
|
|
@ -1,23 +0,0 @@
|
|||
// Show users' own uploaded screenshots in this session
|
||||
|
||||
/ = link_to 'Back', :back, class: 'button small'
|
||||
|
||||
.row.packagepage
|
||||
h1 Screenshots you uploaded
|
||||
|
||||
- @packages.each do |package|
|
||||
h2 Package #{package.name}
|
||||
.subtitle
|
||||
= package.description
|
||||
|
||||
.small-9.large-10.columns
|
||||
- if @current_users_screenshots.length>0
|
||||
.row.small-up-1.medium-up-3.large-up-4.grid-thumbnails
|
||||
- @current_users_screenshots.each do |screenshot|
|
||||
.column
|
||||
|
||||
a.black.fancybox href=screenshot.image.url(:large, timestamp: false)
|
||||
div.grid-thumbnail
|
||||
= image_tag(screenshot.image.url(:thumb, timestamp: false), alt: screenshot.caption, class: 'thumbnail')
|
||||
div
|
||||
= screenshot.description
|
||||
Loading…
Add table
Add a link
Reference in a new issue