Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
7c39e728
Commit
7c39e728
authored
Feb 13, 2015
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move OAuth signin options just below signin box.
parent
da160819
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 additions
and
24 deletions
+19
-24
app/views/devise/registrations/new.html.haml
app/views/devise/registrations/new.html.haml
+1
-5
app/views/devise/sessions/new.html.haml
app/views/devise/sessions/new.html.haml
+0
-9
app/views/devise/shared/_oauth_box.html.haml
app/views/devise/shared/_oauth_box.html.haml
+0
-10
app/views/devise/shared/_signin_box.html.haml
app/views/devise/shared/_signin_box.html.haml
+13
-0
app/views/devise/shared/_signup_box.html.haml
app/views/devise/shared/_signup_box.html.haml
+5
-0
No files found.
app/views/devise/registrations/new.html.haml
View file @
7c39e728
=
render
'devise/shared/signup_box'
.clearfix.prepend-top-20
=
render
'devise/shared/sign_in_link'
%p
%span
.light
Did not receive confirmation email?
=
link_to
"Send again"
,
new_confirmation_path
(
resource_name
)
\ No newline at end of file
=
render
'devise/shared/sign_in_link'
\ No newline at end of file
app/views/devise/sessions/new.html.haml
View file @
7c39e728
%div
=
render
'devise/shared/signin_box'
-
if
Gitlab
.
config
.
omniauth
.
enabled
&&
devise_mapping
.
omniauthable?
.prepend-top-20
=
render
'devise/shared/oauth_box'
-
if
signup_enabled?
.prepend-top-20
=
render
'devise/shared/signup_box'
.clearfix.prepend-top-20
%p
%span
.light
Did not receive confirmation email?
=
link_to
"Send again"
,
new_confirmation_path
(
resource_name
)
app/views/devise/shared/_oauth_box.html.haml
deleted
100644 → 0
View file @
da160819
-
providers
=
additional_providers
-
if
providers
.
present?
.login-box
{
:'data-no-turbolink'
=>
'data-no-turbolink'
}
%span
Sign in with
-
providers
.
each
do
|
provider
|
%span
-
if
default_providers
.
include?
(
provider
)
=
link_to
authbutton
(
provider
,
32
),
omniauth_authorize_path
(
resource_name
,
provider
)
-
else
=
link_to
provider
.
to_s
.
titleize
,
omniauth_authorize_path
(
resource_name
,
provider
),
class:
"btn"
app/views/devise/shared/_signin_box.html.haml
View file @
7c39e728
...
...
@@ -27,3 +27,16 @@
-
else
%div
No authentication methods configured.
-
if
Gitlab
.
config
.
omniauth
.
enabled
&&
devise_mapping
.
omniauthable?
.clearfix.prepend-top-20
%p
%span
.light
Sign in with
-
providers
=
additional_providers
-
providers
.
each
do
|
provider
|
%span
.light
-
if
default_providers
.
include?
(
provider
)
=
link_to
authbutton
(
provider
,
32
),
omniauth_authorize_path
(
resource_name
,
provider
)
-
else
=
link_to
provider
.
to_s
.
titleize
,
omniauth_authorize_path
(
resource_name
,
provider
),
class:
"btn"
\ No newline at end of file
app/views/devise/shared/_signup_box.html.haml
View file @
7c39e728
...
...
@@ -19,3 +19,8 @@
=
f
.
password_field
:password
,
class:
"form-control bottom"
,
id:
"user_password_sign_up"
,
placeholder:
"Password"
,
required:
true
%div
=
f
.
submit
"Sign up"
,
class:
"btn-create btn"
.clearfix.prepend-top-20
%p
%span
.light
Did not receive confirmation email?
=
link_to
"Send again"
,
new_confirmation_path
(
resource_name
)
\ No newline at end of file
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