Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_index.html.haml « hooks « projects « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 776681ea09a90b391add41c2d8fb315d8e75038f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
.row.prepend-top-default
  .col-lg-4
    %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-8.append-bottom-default
    = form_for @hook, as: :hook, url: polymorphic_path([@project.namespace.becomes(Namespace), @project, :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.