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
799f004e
Commit
799f004e
authored
Feb 22, 2021
by
Jeremy Elder
Committed by
Kushal Pandya
Feb 22, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Audit and update buttons on SessionsController#new
parent
558a94d5
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
11 additions
and
26 deletions
+11
-26
app/assets/stylesheets/framework/variables.scss
app/assets/stylesheets/framework/variables.scss
+1
-1
app/assets/stylesheets/page_bundles/signup.scss
app/assets/stylesheets/page_bundles/signup.scss
+0
-5
app/assets/stylesheets/pages/login.scss
app/assets/stylesheets/pages/login.scss
+0
-11
app/assets/stylesheets/startup/startup-signin.scss
app/assets/stylesheets/startup/startup-signin.scss
+0
-5
app/helpers/auth_helper.rb
app/helpers/auth_helper.rb
+2
-2
app/views/devise/sessions/_new_base.html.haml
app/views/devise/sessions/_new_base.html.haml
+1
-1
app/views/devise/shared/_omniauth_box.html.haml
app/views/devise/shared/_omniauth_box.html.haml
+1
-1
changelogs/unreleased/273292-fy21q4-foundations-kr2-audit-and-update-buttons-on-sessionscontrol.yml
...tions-kr2-audit-and-update-buttons-on-sessionscontrol.yml
+6
-0
No files found.
app/assets/stylesheets/framework/variables.scss
View file @
799f004e
...
...
@@ -443,7 +443,7 @@ $gl-avatar-size: 40px;
$border-radius-default
:
4px
;
$border-radius-small
:
2px
;
$border-radius-large
:
8px
;
$default-icon-size
:
1
8
px
;
$default-icon-size
:
1
6
px
;
$layout-link-gray
:
#7e7c7c
;
$btn-side-margin
:
10px
;
$btn-sm-side-margin
:
7px
;
...
...
app/assets/stylesheets/page_bundles/signup.scss
View file @
799f004e
...
...
@@ -32,11 +32,6 @@
@include
media-breakpoint-down
(
md
)
{
width
:
100%
;
}
img
{
width
:
$default-icon-size
;
height
:
$default-icon-size
;
}
}
.decline-page
{
...
...
app/assets/stylesheets/pages/login.scss
View file @
799f004e
...
...
@@ -106,17 +106,6 @@
width
:
100%
;
}
}
.omniauth-btn
{
width
:
100%
;
padding
:
$gl-padding-8
;
img
{
width
:
$default-icon-size
;
height
:
$default-icon-size
;
margin-right
:
$gl-padding
;
}
}
}
.new-session-tabs
{
...
...
app/assets/stylesheets/startup/startup-signin.scss
View file @
799f004e
...
...
@@ -2142,11 +2142,6 @@ table.code {
width
:
100%
;
padding
:
8px
;
}
.login-page
.omniauth-container
.omniauth-btn
img
{
width
:
1
.125rem
;
height
:
1
.125rem
;
margin-right
:
16px
;
}
.login-page
.new-session-tabs
{
display
:
flex
;
box-shadow
:
0
0
0
1px
#dbdbdb
;
...
...
app/helpers/auth_helper.rb
View file @
799f004e
...
...
@@ -125,11 +125,11 @@ module AuthHelper
label
=
label_for_provider
(
provider
)
if
provider_has_custom_icon?
(
provider
)
image_tag
(
icon_for_provider
(
provider
),
alt:
label
,
title:
"Sign in with
#{
label
}
"
)
image_tag
(
icon_for_provider
(
provider
),
alt:
label
,
title:
"Sign in with
#{
label
}
"
,
class:
"gl-button-icon"
)
elsif
provider_has_builtin_icon?
(
provider
)
file_name
=
"
#{
provider
.
to_s
.
split
(
'_'
).
first
}
_
#{
size
}
.png"
image_tag
(
"auth_buttons/
#{
file_name
}
"
,
alt:
label
,
title:
"Sign in with
#{
label
}
"
)
image_tag
(
"auth_buttons/
#{
file_name
}
"
,
alt:
label
,
title:
"Sign in with
#{
label
}
"
,
class:
"gl-button-icon"
)
else
label
end
...
...
app/views/devise/sessions/_new_base.html.haml
View file @
799f004e
...
...
@@ -20,4 +20,4 @@
=
recaptcha_tags
.submit-container.move-submit-down
=
f
.
submit
_
(
'Sign in'
),
class:
'gl-button btn btn-
success
'
,
data:
{
qa_selector:
'sign_in_button'
}
=
f
.
submit
_
(
'Sign in'
),
class:
'gl-button btn btn-
confirm
'
,
data:
{
qa_selector:
'sign_in_button'
}
app/views/devise/shared/_omniauth_box.html.haml
View file @
799f004e
...
...
@@ -7,7 +7,7 @@
.d-flex.justify-content-between.flex-wrap
-
providers
.
each
do
|
provider
|
-
has_icon
=
provider_has_icon?
(
provider
)
=
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
=
button_to
omniauth_authorize_path
(
:user
,
provider
),
id:
"oauth-login-
#{
provider
}
"
,
class:
"btn gl-button btn-default
omniauth-btn
oauth-login
#{
qa_class_for_provider
(
provider
)
}
"
do
-
if
has_icon
=
provider_image_tag
(
provider
)
%span
...
...
changelogs/unreleased/273292-fy21q4-foundations-kr2-audit-and-update-buttons-on-sessionscontrol.yml
0 → 100644
View file @
799f004e
---
title
:
Update the Sign In button to use the new confirm button variant, migrate OAuth
buttons to use the default variant of GlButton.
merge_request
:
53254
author
:
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