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

index.html.haml « hooks « admin « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: acbf7a108b85d52168935a8fc33c689407ad619e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
.alert.alert-info
  %span
    Post receive hooks for binding events.
    %br
    Read more about system hooks
    %strong #{link_to "here", help_system_hooks_path, class: "vlink"}

= form_for @hook, as: :hook, url: admin_hooks_path, html: { class: 'form-inline' } do |f|
  -if @hook.errors.any?
    .alert.alert-error
      - @hook.errors.full_messages.each do |msg|
        %p= msg
  .clearfix
    = f.label :url, "URL:"
    .input
      = f.text_field :url, class: "text_field xxlarge"
       
      = f.submit "Add System Hook", class: "btn btn-primary"
%hr

-if @hooks.any?
  %h3
    Hooks
    %small (#{@hooks.count})
  %br
  %table
    %tr
      %th URL
      %th Method
      %th
    - @hooks.each do |hook|
      %tr
        %td
          = link_to admin_hook_path(hook) do
            %strong= hook.url
          = link_to 'Test Hook', admin_hook_test_path(hook), class: "btn btn-small pull-right"
        %td POST
        %td
          = link_to 'Remove', admin_hook_path(hook), confirm: 'Are you sure?', method: :delete, class: "btn btn-remove btn-small pull-right"