summaryrefslogtreecommitdiff
path: root/app/views/hooks/index.html.haml
blob: e149f4fc7675b9ee5eb44c44e04d3e04e6c860cc (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
= render "repositories/head"




.right= link_to "Add new", new_project_hook_path(@project), :class => "grey-button append-bottom-10"
- unless @hooks.empty?
  %div.update-data.ui-box.ui-box-small
    .data
      - @hooks.each do |hook|
        %a.update-item{:href => project_hook_path(@project, hook)}
          %span.update-title{:style => "margin-bottom:0px;"}
            = hook.url
            %span.update-author.right
              Added
              = time_ago_in_words(hook.created_at)
              ago
- else 
  %h3 No hooks

.clear
%h3 Help
%p 
  Post receive hooks. For now only POST request allowed. We send some data with request. Example below

.view_file
  .view_file_header
    %strong POST data passed
  .data.no-padding
    = render "data_ex"