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
76382d6c
Commit
76382d6c
authored
Jan 27, 2022
by
dzubova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set danger variant to remove user/project
Update label for the remove buttons
parent
a6066836
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
app/views/admin/users/projects.html.haml
app/views/admin/users/projects.html.haml
+2
-2
No files found.
app/views/admin/users/projects.html.haml
View file @
76382d6c
...
...
@@ -16,7 +16,7 @@
.float-right
%span
.light.vertical-align-middle
=
group_member
.
human_access
-
unless
group_member
.
owner?
=
link_to
group_group_member_path
(
group
,
group_member
),
data:
{
confirm:
remove_member_message
(
group_member
),
testid:
'remove-user'
},
method: :delete
,
remote:
true
,
class:
"btn btn-sm btn-danger gl-button btn-icon gl-ml-3"
,
title:
_
(
'Remove user from group'
)
do
=
link_to
group_group_member_path
(
group
,
group_member
),
data:
{
confirm:
remove_member_message
(
group_member
),
confirm_btn_variant:
'danger'
,
testid:
'remove-user'
},
aria:
{
label:
_
(
'Remove'
)
},
method: :delete
,
remote:
true
,
class:
"btn btn-sm btn-danger gl-button btn-icon gl-ml-3"
,
title:
_
(
'Remove user from group'
)
do
=
sprite_icon
(
'remove'
,
size:
16
,
css_class:
'gl-icon'
)
.row
...
...
@@ -46,7 +46,7 @@
%span
.light.vertical-align-middle
=
member
.
human_access
-
if
member
.
respond_to?
:project
=
link_to
project_project_member_path
(
project
,
member
),
data:
{
confirm:
remove_member_message
(
member
)
},
remote:
true
,
method: :delete
,
class:
"btn btn-sm btn-danger gl-button btn-icon gl-ml-3"
,
title:
_
(
'Remove user from project'
)
do
=
link_to
project_project_member_path
(
project
,
member
),
data:
{
confirm:
remove_member_message
(
member
)
,
confirm_btn_variant:
'danger'
},
aria:
{
label:
_
(
'Remove'
)
},
remote:
true
,
method: :delete
,
class:
"btn btn-sm btn-danger gl-button btn-icon gl-ml-3"
,
title:
_
(
'Remove user from project'
)
do
=
sprite_icon
(
'remove'
,
size:
16
,
css_class:
'gl-icon'
)
=
render
partial:
'admin/users/modals'
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