debshots/app/views/devise/sessions/new.slim

64 lines
2.5 KiB
Text

// Login form (sign_in)
.grid-container
.small-8.cell.small-centered
div.callout
p
' Are you required to login? No. You can still upload screenshots.
' Your uploads will just have to be reviewed by a project member.
' We need to avoid publishing inappropriate images.
p
' If you are a member of the Debian project and have an account on
' salsa.debian.net (the Gitlab server) then feel free to login.
' You can then moderate pending uploads, hide bad screenshots or
' upload your own screenshots without going through moderation.
/ .grid-container
/ .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
/ = link_to image_tag('/images/sso/github.png'), user_github_omniauth_authorize_path
/ p
/ = link_to image_tag('/images/sso/stackexchange.png'), user_stackexchange_omniauth_authorize_path
/ p
/ = link_to image_tag('/images/sso/launchpad.png'), user_launchpad_omniauth_authorize_path
/ p
/ = link_to image_tag('/images/sso/amazon.png'), user_amazon_omniauth_authorize_path
hr
= form_for(resource, as: resource_name, url: session_path(resource_name), data: { turbo: false }) do |f|
= f.hidden_field :provider, value: 'local'
.grid-x.grid-padding-x.align-center
.cell.small-4
h4.text-center Debian staff login
p.text-center
= link_to icon('key-round') + 'Login via Salsa', user_salsa_omniauth_authorize_path, class: 'button primary large', method: :post
.cell.small-4
h4.text-center Admin login
p.text-center
= f.email_field :email, autofocus: true, placeholder: 'email address', class: 'sign-in-form-username'
= f.password_field :password, autocomplete: "off", placeholder: 'password', class: 'sign-in-form-password'
= f.submit "Sign in", class: 'button'
/ - if devise_mapping.rememberable?
/ .small-6.cell
/ = f.check_box :remember_me
/ .small-6.cell
/ = f.label :remember_me
/ = render "devise/shared/links"