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
388c961e
Commit
388c961e
authored
Mar 05, 2021
by
Yogi
Committed by
Andrew Fontaine
Mar 05, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move to btn-confirm from btn-success in admin/hooks directory
parent
75a041b5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
+7
-2
app/views/admin/hooks/edit.html.haml
app/views/admin/hooks/edit.html.haml
+1
-1
app/views/admin/hooks/index.html.haml
app/views/admin/hooks/index.html.haml
+1
-1
changelogs/unreleased/btn-confirm-admin-hooks.yml
changelogs/unreleased/btn-confirm-admin-hooks.yml
+5
-0
No files found.
app/views/admin/hooks/edit.html.haml
View file @
388c961e
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
=
form_for
@hook
,
as: :hook
,
url:
admin_hook_path
do
|
f
|
=
form_for
@hook
,
as: :hook
,
url:
admin_hook_path
do
|
f
|
=
render
partial:
'form'
,
locals:
{
form:
f
,
hook:
@hook
}
=
render
partial:
'form'
,
locals:
{
form:
f
,
hook:
@hook
}
.form-actions
.form-actions
%span
>=
f
.
submit
_
(
'Save changes'
),
class:
'btn gl-button btn-
success
gl-mr-3'
%span
>=
f
.
submit
_
(
'Save changes'
),
class:
'btn gl-button btn-
confirm
gl-mr-3'
=
render
'shared/web_hooks/test_button'
,
hook:
@hook
=
render
'shared/web_hooks/test_button'
,
hook:
@hook
=
link_to
_
(
'Delete'
),
admin_hook_path
(
@hook
),
method: :delete
,
class:
'btn gl-button btn-danger float-right'
,
data:
{
confirm:
_
(
'Are you sure?'
)
}
=
link_to
_
(
'Delete'
),
admin_hook_path
(
@hook
),
method: :delete
,
class:
'btn gl-button btn-danger float-right'
,
data:
{
confirm:
_
(
'Are you sure?'
)
}
...
...
app/views/admin/hooks/index.html.haml
View file @
388c961e
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
.col-lg-8.gl-mb-3
.col-lg-8.gl-mb-3
=
form_for
@hook
,
as: :hook
,
url:
admin_hooks_path
do
|
f
|
=
form_for
@hook
,
as: :hook
,
url:
admin_hooks_path
do
|
f
|
=
render
partial:
'form'
,
locals:
{
form:
f
,
hook:
@hook
}
=
render
partial:
'form'
,
locals:
{
form:
f
,
hook:
@hook
}
=
f
.
submit
_
(
'Add system hook'
),
class:
'btn gl-button btn-
success
'
=
f
.
submit
_
(
'Add system hook'
),
class:
'btn gl-button btn-
confirm
'
=
render
'shared/web_hooks/index'
,
hooks:
@hooks
,
hook_class:
@hook
.
class
=
render
'shared/web_hooks/index'
,
hooks:
@hooks
,
hook_class:
@hook
.
class
...
...
changelogs/unreleased/btn-confirm-admin-hooks.yml
0 → 100644
View file @
388c961e
---
title
:
Move to btn-confirm from btn-success in admin/hooks directory
merge_request
:
55272
author
:
Yogi (@yo)
type
:
changed
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