2017-04-27 06:08:57 -04:00
|
|
|
%p
|
|
|
|
%strong Request URL:
|
|
|
|
POST
|
|
|
|
= hook_log.url
|
|
|
|
= render partial: 'shared/hook_logs/status_label', locals: { hook_log: hook_log }
|
|
|
|
|
|
|
|
%p
|
|
|
|
%strong Trigger:
|
2018-04-09 17:50:40 -04:00
|
|
|
%td.d-none.d-sm-block
|
2018-04-13 15:46:38 -04:00
|
|
|
%span.badge.badge-gray.deploy-project-label
|
2017-04-27 06:08:57 -04:00
|
|
|
= hook_log.trigger.singularize.titleize
|
|
|
|
%p
|
|
|
|
%strong Elapsed time:
|
2017-11-02 04:04:07 -04:00
|
|
|
#{number_with_precision(hook_log.execution_duration, precision: 2)} sec
|
2017-04-27 06:08:57 -04:00
|
|
|
%p
|
|
|
|
%strong Request time:
|
|
|
|
= time_ago_with_tooltip(hook_log.created_at)
|
|
|
|
|
|
|
|
%hr
|
|
|
|
|
|
|
|
- if hook_log.internal_error_message.present?
|
|
|
|
.bs-callout.bs-callout-danger
|
|
|
|
= hook_log.internal_error_message
|
|
|
|
|
|
|
|
%h5 Request headers:
|
|
|
|
%pre
|
|
|
|
- hook_log.request_headers.each do |k,v|
|
|
|
|
<strong>#{k}:</strong> #{v}
|
|
|
|
%br
|
|
|
|
|
|
|
|
%h5 Request body:
|
|
|
|
%pre
|
2018-07-02 12:19:57 -04:00
|
|
|
:escaped
|
2017-04-27 06:08:57 -04:00
|
|
|
#{JSON.pretty_generate(hook_log.request_data)}
|
|
|
|
%h5 Response headers:
|
|
|
|
%pre
|
|
|
|
- hook_log.response_headers.each do |k,v|
|
|
|
|
<strong>#{k}:</strong> #{v}
|
|
|
|
%br
|
|
|
|
|
|
|
|
%h5 Response body:
|
|
|
|
%pre
|
2018-07-02 12:19:57 -04:00
|
|
|
:escaped
|
2017-04-27 06:08:57 -04:00
|
|
|
#{hook_log.response_body}
|