SSO account foo removed from template

This commit is contained in:
Christoph Haas 2020-06-24 21:28:17 +02:00
parent 87d37c1792
commit 2150d9a560

View file

@ -9,61 +9,64 @@
' upload. We just want to avoid publishing inappropriate images. ' upload. We just want to avoid publishing inappropriate images.
p p
' If you decide to login you will be able to manage your own ' Currently this login page is only used for moderators who deal with
' uploads at any time. And others can see how much you contributed already. ' new uploads. It is planned however to allow login for everyone so that
' In addition once your first screenshot is approved you will be able ' you can manage your own uploads.
' to upload further screenshots without moderation.
' We have made it easy for both you and us. There is no registration here. / p
' Just use any of the below services to log in. / ' If you decide to login you will be able to manage your own
/ ' uploads at any time. And others can see how much you contributed already.
/ ' In addition once your first screenshot is approved you will be able
/ ' to upload further screenshots without moderation.
/ ' We have made it easy for both you and us. There is no registration here.
/ ' Just use any of the below services to log in.
p / p
' If you are associated to the Debian project you will / ' If you are associated to the Debian project you will
' automatically be recognized if you have a certificate / ' automatically be recognized if you have a certificate
' from the / ' from the
a href='https://sso.debian.org/' Debian SSO / a href='https://sso.debian.org/' Debian SSO
' installed in your browser. / ' installed in your browser.
.grid-container / .grid-container
.text-center / .text-center
// Alternative way to display buttons without images. (Amazon wants their own button though.) / // Alternative way to display buttons without images. (Amazon wants their own button though.)
/ p / / p
/ = link_to (fa_icon 'google', text: '- Login with Google'), user_google_oauth2_omniauth_authorize_path, class: 'button secondary large' / / = link_to (fa_icon 'google', text: '- Login with Google'), user_google_oauth2_omniauth_authorize_path, class: 'button secondary large'
/ p / / p
/ = link_to (fa_icon 'github', text: '- Login with Google'), user_google_oauth2_omniauth_authorize_path, class: 'button secondary large' / / = link_to (fa_icon 'github', text: '- Login with Google'), user_google_oauth2_omniauth_authorize_path, class: 'button secondary large'
p / p
= link_to image_tag('/images/sso/google.png'), user_google_oauth2_omniauth_authorize_path / = link_to image_tag('/images/sso/google.png'), user_google_oauth2_omniauth_authorize_path
p / p
= link_to image_tag('/images/sso/github.png'), user_github_omniauth_authorize_path / = link_to image_tag('/images/sso/github.png'), user_github_omniauth_authorize_path
p / p
= link_to image_tag('/images/sso/stackexchange.png'), user_stackexchange_omniauth_authorize_path / = link_to image_tag('/images/sso/stackexchange.png'), user_stackexchange_omniauth_authorize_path
p / p
= link_to image_tag('/images/sso/launchpad.png'), user_launchpad_omniauth_authorize_path / = link_to image_tag('/images/sso/launchpad.png'), user_launchpad_omniauth_authorize_path
p / p
= link_to image_tag('/images/sso/amazon.png'), user_amazon_omniauth_authorize_path / = link_to image_tag('/images/sso/amazon.png'), user_amazon_omniauth_authorize_path
hr hr
.grid-container = form_for(resource, as: resource_name, url: session_path(resource_name)) do |f|
= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| = f.hidden_field :provider, value: 'local'
= f.hidden_field :provider, value: 'local'
.small-2.cell
b Admin only…
.small-5.cell
= f.email_field :email, autofocus: true, placeholder: 'email address'
.small-4.cell .grid-x.grid-padding-x.align-center
= f.password_field :password, autocomplete: "off", placeholder: 'password' .cell.small-4
h4.text-center Moderators
label for="sign-in-form-username" Login
= f.email_field :email, autofocus: true, placeholder: 'email address', class: 'sign-in-form-username'
label for="sign-in-form-password" Password
= f.password_field :password, autocomplete: "off", placeholder: 'password', class: 'sign-in-form-password'
= f.submit "Sign in", class: 'button'
.small-1.cell / - if devise_mapping.rememberable?
= f.submit "Log in", class: 'button' / .small-6.cell
/ = f.check_box :remember_me
/ - if devise_mapping.rememberable? / .small-6.cell
/ .small-6.cell / = f.label :remember_me
/ = f.check_box :remember_me
/ .small-6.cell
/ = f.label :remember_me
/ = render "devise/shared/links" / = render "devise/shared/links"