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
d0b0715f
Commit
d0b0715f
authored
Mar 11, 2021
by
yo
Committed by
Yogi
Mar 16, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move from btn-success to btn-confirm in hooks directory
parent
02ee1271
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
app/views/projects/hooks/edit.html.haml
app/views/projects/hooks/edit.html.haml
+1
-1
app/views/projects/hooks/index.html.haml
app/views/projects/hooks/index.html.haml
+1
-1
No files found.
app/views/projects/hooks/edit.html.haml
View file @
d0b0715f
...
...
@@ -10,7 +10,7 @@
=
form_for
[
@project
,
@hook
],
as: :hook
,
url:
project_hook_path
(
@project
,
@hook
)
do
|
f
|
=
render
partial:
'shared/web_hooks/form'
,
locals:
{
form:
f
,
hook:
@hook
}
=
f
.
submit
'Save changes'
,
class:
'btn gl-button btn-
success
gl-mr-3'
=
f
.
submit
'Save changes'
,
class:
'btn gl-button btn-
confirm
gl-mr-3'
=
render
'shared/web_hooks/test_button'
,
hook:
@hook
=
link_to
_
(
'Delete'
),
project_hook_path
(
@project
,
@hook
),
method: :delete
,
class:
'btn gl-button btn-danger float-right'
,
data:
{
confirm:
_
(
'Are you sure?'
)
}
...
...
app/views/projects/hooks/index.html.haml
View file @
d0b0715f
...
...
@@ -9,6 +9,6 @@
.col-lg-8.gl-mb-3
=
form_for
@hook
,
as: :hook
,
url:
polymorphic_path
([
@project
,
:hooks
])
do
|
f
|
=
render
partial:
'shared/web_hooks/form'
,
locals:
{
form:
f
,
hook:
@hook
}
=
f
.
submit
'Add webhook'
,
class:
'gl-button btn btn-
success
'
=
f
.
submit
'Add webhook'
,
class:
'gl-button btn btn-
confirm
'
=
render
'shared/web_hooks/index'
,
hooks:
@hooks
,
hook_class:
@hook
.
class
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