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
9031d9a5
Commit
9031d9a5
authored
Mar 23, 2021
by
Yogi
Committed by
David O'Regan
Mar 23, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Apply new GitLab UI buttons in the webhooks list
parent
a474f44a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
7 deletions
+13
-7
app/views/shared/web_hooks/_hook.html.haml
app/views/shared/web_hooks/_hook.html.haml
+3
-3
app/views/shared/web_hooks/_test_button.html.haml
app/views/shared/web_hooks/_test_button.html.haml
+5
-4
changelogs/unreleased/yo-btn-default-whooks.yml
changelogs/unreleased/yo-btn-default-whooks.yml
+5
-0
No files found.
app/views/shared/web_hooks/_hook.html.haml
View file @
9031d9a5
...
...
@@ -11,6 +11,6 @@
=
hook
.
enable_ssl_verification
?
_
(
'enabled'
)
:
_
(
'disabled'
)
.col-md-4.col-lg-5.text-right-md.gl-mt-2
%span
>=
render
'shared/web_hooks/test_button'
,
hook:
hook
,
button_class:
'btn-sm gl-mr-3'
%span
>=
link_to
_
(
'Edit'
),
edit_hook_path
(
hook
),
class:
'
gl-button btn
btn-sm gl-mr-3'
=
link_to
_
(
'Delete'
),
destroy_hook_path
(
hook
),
data:
{
confirm:
_
(
'Are you sure?'
)
},
method: :delete
,
class:
'
gl-button btn
btn-sm'
%span
>=
render
'shared/web_hooks/test_button'
,
hook:
hook
,
button_class:
'btn-sm
btn-default
gl-mr-3'
%span
>=
link_to
_
(
'Edit'
),
edit_hook_path
(
hook
),
class:
'
btn gl-button btn-default
btn-sm gl-mr-3'
=
link_to
_
(
'Delete'
),
destroy_hook_path
(
hook
),
data:
{
confirm:
_
(
'Are you sure?'
)
},
method: :delete
,
class:
'
btn gl-button btn-default
btn-sm'
app/views/shared/web_hooks/_test_button.html.haml
View file @
9031d9a5
...
...
@@ -2,11 +2,12 @@
-
hook
=
local_assigns
.
fetch
(
:hook
)
-
triggers
=
hook
.
class
.
triggers
.hook-test-button.dropdown.inline
>
.hook-test-button.dropdown.
gl-new-dropdown.
inline
>
%button
.btn.gl-button
{
'data-toggle'
=>
'dropdown'
,
class:
button_class
}
=
_
(
'Test'
)
=
sprite_icon
(
'chevron-down'
)
%ul
.dropdown-menu.dropdown-menu-right
{
role:
'menu'
}
-
triggers
.
each_value
do
|
event
|
%li
=
link_to_test_hook
(
hook
,
event
)
.gl-new-dropdown-inner
-
triggers
.
each_value
do
|
event
|
%li
.gl-new-dropdown-item
=
link_to_test_hook
(
hook
,
event
)
changelogs/unreleased/yo-btn-default-whooks.yml
0 → 100644
View file @
9031d9a5
---
title
:
Apply new GitLab UI buttons in the webhooks list
merge_request
:
51977
author
:
Yogi (@yo)
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