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
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
5600d723
Commit
5600d723
authored
Feb 11, 2021
by
Yogi
Committed by
Kushal Pandya
Feb 11, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add btn-default class for social buttons in login and signup page
parent
8b6f1184
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
+7
-2
app/views/devise/shared/_omniauth_box.html.haml
app/views/devise/shared/_omniauth_box.html.haml
+1
-1
app/views/devise/shared/_signup_omniauth_provider_list.haml
app/views/devise/shared/_signup_omniauth_provider_list.haml
+1
-1
changelogs/unreleased/gl-button-social.yml
changelogs/unreleased/gl-button-social.yml
+5
-0
No files found.
app/views/devise/shared/_omniauth_box.html.haml
View file @
5600d723
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
.d-flex.justify-content-between.flex-wrap
.d-flex.justify-content-between.flex-wrap
-
providers
.
each
do
|
provider
|
-
providers
.
each
do
|
provider
|
-
has_icon
=
provider_has_icon?
(
provider
)
-
has_icon
=
provider_has_icon?
(
provider
)
=
button_to
omniauth_authorize_path
(
:user
,
provider
),
id:
"oauth-login-
#{
provider
}
"
,
class:
"
gl-button btn
d-flex align-items-center omniauth-btn text-left oauth-login
#{
qa_class_for_provider
(
provider
)
}
"
do
=
button_to
omniauth_authorize_path
(
:user
,
provider
),
id:
"oauth-login-
#{
provider
}
"
,
class:
"
btn gl-button btn-default
d-flex align-items-center omniauth-btn text-left oauth-login
#{
qa_class_for_provider
(
provider
)
}
"
do
-
if
has_icon
-
if
has_icon
=
provider_image_tag
(
provider
)
=
provider_image_tag
(
provider
)
%span
%span
...
...
app/views/devise/shared/_signup_omniauth_provider_list.haml
View file @
5600d723
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
=
_
(
"Create an account using:"
)
=
_
(
"Create an account using:"
)
.d-flex.justify-content-between.flex-wrap
.d-flex.justify-content-between.flex-wrap
-
providers
.
each
do
|
provider
|
-
providers
.
each
do
|
provider
|
=
link_to
omniauth_authorize_path
(
:user
,
provider
),
method: :post
,
class:
"btn gl-button gl-display-flex gl-align-items-center gl-text-left gl-mb-2 gl-p-2 omniauth-btn oauth-login
#{
qa_class_for_provider
(
provider
)
}
"
,
id:
"oauth-login-
#{
provider
}
"
do
=
link_to
omniauth_authorize_path
(
:user
,
provider
),
method: :post
,
class:
"btn gl-button
btn-default
gl-display-flex gl-align-items-center gl-text-left gl-mb-2 gl-p-2 omniauth-btn oauth-login
#{
qa_class_for_provider
(
provider
)
}
"
,
id:
"oauth-login-
#{
provider
}
"
do
-
if
provider_has_icon?
(
provider
)
-
if
provider_has_icon?
(
provider
)
=
provider_image_tag
(
provider
)
=
provider_image_tag
(
provider
)
%span
.ml-2
%span
.ml-2
...
...
changelogs/unreleased/gl-button-social.yml
0 → 100644
View file @
5600d723
---
title
:
Add btn-default class for social buttons in login and signup page
merge_request
:
53347
author
:
Yogi (@yo)
type
:
other
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