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
b1ffd91f
Commit
b1ffd91f
authored
Feb 08, 2022
by
wortschi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set danger variant and label to leave group
Changelog: changed
parent
c8780dfb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
app/views/shared/members/_access_request_links.html.haml
app/views/shared/members/_access_request_links.html.haml
+2
-1
No files found.
app/views/shared/members/_access_request_links.html.haml
View file @
b1ffd91f
...
...
@@ -4,7 +4,8 @@
-
link_text
=
source
.
is_a?
(
Group
)
?
_
(
'Leave group'
)
:
_
(
'Leave project'
)
=
link_to
link_text
,
polymorphic_path
([
:leave
,
source
,
:members
]),
method: :delete
,
data:
{
confirm:
leave_confirmation_message
(
source
),
qa_selector:
'leave_group_link'
},
aria:
{
label:
link_text
},
data:
{
confirm:
leave_confirmation_message
(
source
),
confirm_btn_variant:
'danger'
,
qa_selector:
'leave_group_link'
},
class:
'js-leave-link'
-
elsif
requester
=
source
.
requesters
.
find_by
(
user_id:
current_user
.
id
)
# rubocop: disable CodeReuse/ActiveRecord
=
link_to
_
(
'Withdraw Access Request'
),
polymorphic_path
([
:leave
,
source
,
:members
]),
...
...
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