diff options
Diffstat (limited to 'app/views/shared/hook_logs/_recent_deliveries_table.html.haml')
-rw-r--r-- | app/views/shared/hook_logs/_recent_deliveries_table.html.haml | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/app/views/shared/hook_logs/_recent_deliveries_table.html.haml b/app/views/shared/hook_logs/_recent_deliveries_table.html.haml new file mode 100644 index 00000000000..31ef8560781 --- /dev/null +++ b/app/views/shared/hook_logs/_recent_deliveries_table.html.haml @@ -0,0 +1,34 @@ +%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 + %span.badge.badge-pill.gl-badge.badge-muted.sm + = hook_log.trigger.singularize.titleize + %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 hook_logs, theme: 'gitlab' +- 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 } + |