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
bb7dab73
Commit
bb7dab73
authored
Jul 27, 2020
by
Martin Wortschack
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace fa-sign-out icons with leave SVG
- Also replace trash icon in member list with SVG
parent
3da460b8
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
20 additions
and
13 deletions
+20
-13
app/views/shared/members/_member.html.haml
app/views/shared/members/_member.html.haml
+5
-6
changelogs/unreleased/225895-replace-fa-sign-out-icons-with-gitlab-svg-leave-icon.yml
...-replace-fa-sign-out-icons-with-gitlab-svg-leave-icon.yml
+5
-0
ee/app/views/shared/issuable/_remove_approver.html.haml
ee/app/views/shared/issuable/_remove_approver.html.haml
+3
-3
locale/gitlab.pot
locale/gitlab.pot
+3
-0
spec/features/admin/admin_projects_spec.rb
spec/features/admin/admin_projects_spec.rb
+1
-1
spec/features/groups/members/manage_members_spec.rb
spec/features/groups/members/manage_members_spec.rb
+2
-2
spec/features/projects/members/list_spec.rb
spec/features/projects/members/list_spec.rb
+1
-1
No files found.
app/views/shared/members/_member.html.haml
View file @
bb7dab73
...
...
@@ -113,18 +113,17 @@
-
if
member
.
can_remove?
-
if
current_user
==
user
=
link_to
icon
(
'sign-out'
,
text:
_
(
'Leave'
)),
polymorphic_path
([
:leave
,
member
.
source
,
:members
]),
method: :delete
,
data:
{
confirm:
leave_confirmation_message
(
member
.
source
)
},
class:
"btn btn-remove align-self-center m-0
#{
'ml-sm-2'
unless
force_mobile_view
}
"
=
link_to
polymorphic_path
([
:leave
,
member
.
source
,
:members
]),
method: :delete
,
data:
{
confirm:
leave_confirmation_message
(
member
.
source
)
},
class:
"btn gl-button btn-svg btn-danger align-self-center m-0
#{
'ml-sm-2'
unless
force_mobile_view
}
"
do
=
sprite_icon
(
'leave'
,
css_class:
'gl-icon'
)
=
_
(
'Leave'
)
-
else
%button
{
data:
{
member_path:
member_path
(
member
.
member
),
message:
remove_member_message
(
member
),
is_access_request:
member
.
request?
.
to_s
,
qa_selector:
'delete_member_button'
},
class:
"js-remove-member-button btn
btn-remove align-self-center m-0 #{'ml-sm-2
' unless force_mobile_view}"
,
class:
"js-remove-member-button btn
gl-button btn-danger align-self-center m-0 #{'ml-sm-2 btn-icon
' unless force_mobile_view}"
,
title:
remove_member_title
(
member
)
}
%span
{
class:
(
'd-block d-sm-none'
unless
force_mobile_view
)
}
=
_
(
"Delete"
)
-
unless
force_mobile_view
=
icon
(
'trash'
,
class:
'd-none d-sm-block
'
)
=
sprite_icon
(
'remove'
,
css_class:
'd-none d-sm-block gl-icon
'
)
=
render_if_exists
'shared/members/ee/override_member_buttons'
,
group:
@group
,
member:
member
,
user:
user
,
action: :edit
,
can_override:
member
.
can_override?
-
else
%span
.member-access-text.user-access-role
=
member
.
human_access
...
...
changelogs/unreleased/225895-replace-fa-sign-out-icons-with-gitlab-svg-leave-icon.yml
0 → 100644
View file @
bb7dab73
---
title
:
Replace fa-sign-out icons with GitLab SVG leave icon
merge_request
:
37794
author
:
type
:
changed
ee/app/views/shared/issuable/_remove_approver.html.haml
View file @
bb7dab73
%li
.unsaved-approvers.hide.approver.approver-template
{
id:
"user_{user_id}"
}
=
link_to
"{approver_name}"
,
"#"
.float-right
=
link_to
"#"
,
data:
{
confirm:
"Are you sure you want to remove approver {approver_name}"
},
class:
"btn-sm btn btn-
remove"
,
title:
'Remove approver'
do
=
icon
(
"sign-out
"
)
Remove
=
link_to
"#"
,
data:
{
confirm:
"Are you sure you want to remove approver {approver_name}"
},
class:
"btn-sm btn btn-
danger gl-button"
,
title:
_
(
'Remove approver'
)
do
=
sprite_icon
(
"close"
,
css_class:
"gl-icon
"
)
=
_
(
"Remove"
)
locale/gitlab.pot
View file @
bb7dab73
...
...
@@ -20156,6 +20156,9 @@ msgstr ""
msgid "Remove all or specific label(s)"
msgstr ""
msgid "Remove approver"
msgstr ""
msgid "Remove approvers"
msgstr ""
...
...
spec/features/admin/admin_projects_spec.rb
View file @
bb7dab73
...
...
@@ -126,7 +126,7 @@ RSpec.describe "Admin::Projects" do
expect
(
page
).
to
have_content
(
'Developer'
)
end
find
(
:css
,
'.content-list li'
,
text:
current_user
.
name
).
find
(
:css
,
'a.btn-
remove
'
).
click
find
(
:css
,
'.content-list li'
,
text:
current_user
.
name
).
find
(
:css
,
'a.btn-
danger
'
).
click
expect
(
page
).
not_to
have_selector
(
:css
,
'.content-list'
)
end
...
...
spec/features/groups/members/manage_members_spec.rb
View file @
bb7dab73
...
...
@@ -69,7 +69,7 @@ RSpec.describe 'Groups > Members > Manage members' do
visit
group_group_members_path
(
group
)
# Open modal
find
(
:css
,
'.project-members-page li'
,
text:
user2
.
name
).
find
(
:css
,
'button.btn-
remove
'
).
click
find
(
:css
,
'.project-members-page li'
,
text:
user2
.
name
).
find
(
:css
,
'button.btn-
danger
'
).
click
expect
(
page
).
to
have_unchecked_field
'Also unassign this user from related issues and merge requests'
...
...
@@ -124,7 +124,7 @@ RSpec.describe 'Groups > Members > Manage members' do
expect
(
page
).
not_to
have_button
'Developer'
# Can not remove user2
expect
(
page
).
not_to
have_css
(
'a.btn-
remove
'
)
expect
(
page
).
not_to
have_css
(
'a.btn-
danger
'
)
end
end
...
...
spec/features/projects/members/list_spec.rb
View file @
bb7dab73
...
...
@@ -65,7 +65,7 @@ RSpec.describe 'Project members list' do
visit_members_page
# Open modal
find
(
:css
,
'li.project_member'
,
text:
other_user
.
name
).
find
(
:css
,
'button.btn-
remove
'
).
click
find
(
:css
,
'li.project_member'
,
text:
other_user
.
name
).
find
(
:css
,
'button.btn-
danger
'
).
click
expect
(
page
).
to
have_unchecked_field
'Also unassign this user from related issues and merge requests'
...
...
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