Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
GitLab
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
projects.thm.de
GitLab
Commits
4715b4e9
Commit
4715b4e9
authored
Oct 04, 2018
by
Daniel Gerhardt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move OmniAuth sign in box to the top
parent
6dacb506
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
new.html.haml
app/views/devise/sessions/new.html.haml
+5
-5
_omniauth_box.html.haml
app/views/devise/shared/_omniauth_box.html.haml
+1
-1
No files found.
app/views/devise/sessions/new.html.haml
View file @
4715b4e9
-
page_title
"Sign in"
#signin-container
-
if
omniauth_enabled?
&&
devise_mapping
.
omniauthable?
&&
button_based_providers_enabled?
%div
.append-bottom-default
=
render
'devise/shared/omniauth_box'
#signin-container
.prepend-top-15
-
if
form_based_providers
.
any?
=
render
'devise/shared/tabs_ldap'
-
else
...
...
@@ -17,7 +21,3 @@
-
if
!
password_authentication_enabled_for_web?
&&
!
ldap_enabled?
&&
!
(
omniauth_enabled?
&&
devise_mapping
.
omniauthable?
)
%div
No authentication methods configured.
-
if
omniauth_enabled?
&&
devise_mapping
.
omniauthable?
&&
button_based_providers_enabled?
.clearfix
=
render
'devise/shared/omniauth_box'
app/views/devise/shared/_omniauth_box.html.haml
View file @
4715b4e9
.omniauth-container
.prepend-top-15
.omniauth-container
%label
.label-bold.d-block
Sign in with
-
providers
=
enabled_button_based_providers
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment