summaryrefslogtreecommitdiff
path: root/app/views/projects/settings/integrations/_project_hook.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/projects/settings/integrations/_project_hook.html.haml')
-rw-r--r--app/views/projects/settings/integrations/_project_hook.html.haml15
1 files changed, 15 insertions, 0 deletions
diff --git a/app/views/projects/settings/integrations/_project_hook.html.haml b/app/views/projects/settings/integrations/_project_hook.html.haml
new file mode 100644
index 00000000000..ceabe2eab3d
--- /dev/null
+++ b/app/views/projects/settings/integrations/_project_hook.html.haml
@@ -0,0 +1,15 @@
+%li
+ .row
+ .col-md-8.col-lg-7
+ %strong.light-header= hook.url
+ %div
+ - %w(push_events tag_push_events issues_events confidential_issues_events note_events merge_requests_events build_events pipeline_events wiki_page_events).each do |trigger|
+ - if hook.send(trigger)
+ %span.label.label-gray.deploy-project-label= trigger.titleize
+ .col-md-4.col-lg-5.text-right-lg.prepend-top-5
+ %span.append-right-10.inline
+ SSL Verification: #{hook.enable_ssl_verification ? "enabled" : "disabled"}
+ = link_to "Test", test_namespace_project_hook_path(@project.namespace, @project, hook), class: "btn btn-sm"
+ = link_to namespace_project_hook_path(@project.namespace, @project, hook), data: { confirm: 'Are you sure?'}, method: :delete, class: "btn btn-transparent" do
+ %span.sr-only Remove
+ = icon('trash')