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
f8a7b3eb
Commit
f8a7b3eb
authored
May 02, 2017
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolve web hooks conflicts after merge from CE
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
a66986c0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
3 deletions
+23
-3
app/views/groups/hooks/index.html.haml
app/views/groups/hooks/index.html.haml
+23
-1
app/views/shared/web_hooks/_form.html.haml
app/views/shared/web_hooks/_form.html.haml
+0
-2
No files found.
app/views/groups/hooks/index.html.haml
View file @
f8a7b3eb
=
render
"groups/settings_head"
=
render
'shared/web_hooks/form'
,
hook:
@hook
,
hooks:
@hooks
,
url_components:
[
@group
]
.row.prepend-top-default
.col-lg-3
%h4
.prepend-top-0
=
page_title
%p
#{
link_to
'Webhooks'
,
help_page_path
(
'user/project/integrations/webhooks'
)
}
can be
used for binding events when something is happening within the project.
.col-lg-9.append-bottom-default
=
form_for
@hook
,
as: :hook
,
url:
polymorphic_path
([
@group
,
:hooks
])
do
|
f
|
=
render
partial:
'shared/web_hooks/form'
,
locals:
{
form:
f
,
hook:
@hook
}
=
f
.
submit
'Add webhook'
,
class:
'btn btn-create'
%hr
%h5
.prepend-top-default
Webhooks (
#{
@hooks
.
count
}
)
-
if
@hooks
.
any?
%ul
.well-list
-
@hooks
.
each
do
|
hook
|
=
render
'project_hook'
,
hook:
hook
-
else
%p
.settings-message.text-center.append-bottom-0
No webhooks found, add one in the form above.
app/views/shared/web_hooks/_form.html.haml
View file @
f8a7b3eb
...
...
@@ -11,9 +11,7 @@
.col-lg-9.append-bottom-default
=
form_for
hook
,
as: :hook
,
url:
polymorphic_path
(
url_components
+
[
:hooks
])
do
|
f
|
=
form_errors
(
hook
)
==
=====
=
form_errors
(
hook
)
>
>>>>>> ce-com/master
.form-group
=
form
.
label
:url
,
'URL'
,
class:
'label-light'
...
...
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