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

_recent_deliveries_table.html.haml « hook_logs « shared « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 500eb29fa93bdbca89e907cc8f2970dfca56cf4c (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
%table.gl-table.gl-w-full
  %thead
    %tr
      %th= _('Status')
      %th.d-none.d-sm-table-cell= _('Trigger')
      %th= _('Elapsed time')
      %th= _('Request time')
      %th

  - if hook_logs.present?
    - 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-table-cell
          = gl_badge_tag hook_log.trigger.singularize.titleize, { size: :sm }
        %td
          #{number_with_precision(hook_log.execution_duration, precision: 2)} sec
        %td
          = time_ago_with_tooltip(hook_log.created_at)
        %td
          = link_to _('View details'), hook_log_path(hook, hook_log)


- if hook_logs.present?
  = paginate_without_count hook_logs
- else
  .gl-text-center.gl-mt-7
    %h4= _('No webhook events')
    %p
      %span.gl-display-block= _('Webhook events will be displayed here.')
      %span= _('Use the %{strongStart}Test%{strongEnd} option above to create an event.').html_safe % { strongStart: '<strong>'.html_safe, strongEnd: '</strong>'.html_safe }