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
983461e5
Commit
983461e5
authored
Mar 08, 2021
by
Jeremy Elder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update button order and variant
parent
07d6cbfb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
7 deletions
+12
-7
app/views/users/show.html.haml
app/views/users/show.html.haml
+7
-7
changelogs/unreleased/273295-fy21q4-foundations-kr2-audit-and-update-buttons-on-userscontroller.yml
...tions-kr2-audit-and-update-buttons-on-userscontroller.yml
+5
-0
No files found.
app/views/users/show.html.haml
View file @
983461e5
...
...
@@ -13,13 +13,6 @@
.user-profile
.cover-block.user-cover-block
{
class:
[(
'border-bottom'
if
profile_tabs
.
empty?
)]
}
=
render
layout:
'users/cover_controls'
do
-
if
current_user
&&
current_user
.
id
!=
@user
.
id
-
if
current_user
.
following?
(
@user
)
=
link_to
user_unfollow_path
(
@user
,
:json
)
,
class:
link_classes
+
'btn gl-button btn-default'
,
method: :post
do
=
_
(
'Unfollow'
)
-
else
=
link_to
user_follow_path
(
@user
,
:json
)
,
class:
link_classes
+
'btn gl-button btn-default'
,
method: :post
do
=
_
(
'Follow'
)
-
if
@user
==
current_user
=
link_to
profile_path
,
class:
link_classes
+
'btn gl-button btn-default btn-icon has-tooltip'
,
title:
s_
(
'UserProfile|Edit profile'
),
'aria-label'
:
'Edit profile'
,
data:
{
toggle:
'tooltip'
,
placement:
'bottom'
,
container:
'body'
}
do
...
...
@@ -41,6 +34,13 @@
=
link_to
[
:admin
,
@user
],
class:
link_classes
+
'btn gl-button btn-default btn-icon'
,
title:
s_
(
'UserProfile|View user in admin area'
),
data:
{
toggle:
'tooltip'
,
placement:
'bottom'
,
container:
'body'
}
do
=
sprite_icon
(
'user'
)
-
if
current_user
&&
current_user
.
id
!=
@user
.
id
-
if
current_user
.
following?
(
@user
)
=
link_to
user_unfollow_path
(
@user
,
:json
)
,
class:
link_classes
+
'btn gl-button btn-default'
,
method: :post
do
=
_
(
'Unfollow'
)
-
else
=
link_to
user_follow_path
(
@user
,
:json
)
,
class:
link_classes
+
'btn gl-button btn-confirm'
,
method: :post
do
=
_
(
'Follow'
)
.profile-header
{
class:
[(
'with-no-profile-tabs'
if
profile_tabs
.
empty?
)]
}
.avatar-holder
...
...
changelogs/unreleased/273295-fy21q4-foundations-kr2-audit-and-update-buttons-on-userscontroller.yml
0 → 100644
View file @
983461e5
---
title
:
Reorder user profile actions and use the confirm variant for the follow button
merge_request
:
55999
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