summaryrefslogtreecommitdiff
path: root/app/views/admin/hook_logs/_index.html.haml
blob: 5e70e80cff710624d5e838db56bb89a60d4443a7 (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
.row.gl-mt-3.gl-mb-3
  .col-lg-3
    %h4.gl-mt-0
      Recent Deliveries
    %p When an event in GitLab triggers a webhook, you can use the request details to figure out if something went wrong.
  .col-lg-9
    - if hook_logs.any?
      %table.table
        %thead
          %tr
            %th Status
            %th Trigger
            %th URL
            %th Elapsed time
            %th Request time
            %th
        - hook_logs.each do |hook_log|
          %tr
            %td
              = render partial: 'shared/hook_logs/status_label', locals: { hook_log: hook_log }
            %td.d-none.d-sm-block
              %span.badge.badge-gray.deploy-project-label
                = hook_log.trigger.singularize.titleize
            %td
              = truncate(hook_log.url, length: 50)
            %td.light
              #{number_with_precision(hook_log.execution_duration, precision: 2)} sec
            %td.light
              = time_ago_with_tooltip(hook_log.created_at)
            %td
              = link_to 'View details', admin_hook_hook_log_path(hook, hook_log)

      = paginate hook_logs, theme: 'gitlab'

    - else
      .settings-message.text-center
        You don't have any webhooks deliveries