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
4024fab4
Commit
4024fab4
authored
Sep 18, 2020
by
andrewmcgivery
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Apply GitLab UI button styles to buttons in app/views/admin/hooks directory
parent
152b0cd9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
app/views/admin/hooks/edit.html.haml
app/views/admin/hooks/edit.html.haml
+2
-2
app/views/admin/hooks/index.html.haml
app/views/admin/hooks/index.html.haml
+1
-1
No files found.
app/views/admin/hooks/edit.html.haml
View file @
4024fab4
...
...
@@ -9,9 +9,9 @@
=
form_for
@hook
,
as: :hook
,
url:
admin_hook_path
do
|
f
|
=
render
partial:
'form'
,
locals:
{
form:
f
,
hook:
@hook
}
.form-actions
%span
>=
f
.
submit
_
(
'Save changes'
),
class:
'btn btn-success gl-mr-3'
%span
>=
f
.
submit
_
(
'Save changes'
),
class:
'btn
gl-button
btn-success gl-mr-3'
=
render
'shared/web_hooks/test_button'
,
hook:
@hook
=
link_to
_
(
'Delete'
),
admin_hook_path
(
@hook
),
method: :delete
,
class:
'btn btn-remove float-right'
,
data:
{
confirm:
_
(
'Are you sure?'
)
}
=
link_to
_
(
'Delete'
),
admin_hook_path
(
@hook
),
method: :delete
,
class:
'btn
gl-button
btn-remove float-right'
,
data:
{
confirm:
_
(
'Are you sure?'
)
}
%hr
...
...
app/views/admin/hooks/index.html.haml
View file @
4024fab4
...
...
@@ -7,7 +7,7 @@
.col-lg-8.gl-mb-3
=
form_for
@hook
,
as: :hook
,
url:
admin_hooks_path
do
|
f
|
=
render
partial:
'form'
,
locals:
{
form:
f
,
hook:
@hook
}
=
f
.
submit
_
(
'Add system hook'
),
class:
'btn btn-success'
=
f
.
submit
_
(
'Add system hook'
),
class:
'btn
gl-button
btn-success'
=
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