debian-mirror-gitlab/app/views/shared/hook_logs/_content.html.haml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

44 lines
1.2 KiB
Text
Raw Normal View History

2021-12-11 22:18:48 +05:30
%span.gl-display-flex.gl-align-items-center
%h4
POST
= hook_log.url
2022-03-02 08:16:31 +05:30
= gl_badge_tag hook_log.trigger.singularize.titleize, { size: :sm }, { class: 'gl-ml-3' }
2017-09-10 17:25:29 +05:30
%p
2021-12-11 22:18:48 +05:30
= _('Completed in %{duration_seconds} seconds (%{relative_time})').html_safe % { duration_seconds: number_with_precision(hook_log.execution_duration, precision: 2), relative_time: time_ago_with_tooltip(hook_log.created_at) }
2017-09-10 17:25:29 +05:30
%hr
- if hook_log.internal_error_message.present?
2022-06-21 17:19:12 +05:30
= render Pajamas::AlertComponent.new(title: _('Internal error occurred while delivering this webhook.'),
variant: :danger,
2022-07-16 23:28:13 +05:30
dismissible: false) do |c|
= c.body do
2022-06-21 17:19:12 +05:30
= _('Error: %{error}') % { error: hook_log.internal_error_message }
2021-12-11 22:18:48 +05:30
%h4= _('Response')
= render partial: 'shared/hook_logs/status_label', locals: { hook_log: hook_log }
%pre.gl-mt-3
:escaped
#{hook_log.response_body}
2017-09-10 17:25:29 +05:30
2021-12-11 22:18:48 +05:30
%h5= _('Headers')
2017-09-10 17:25:29 +05:30
%pre
2021-12-11 22:18:48 +05:30
- hook_log.response_headers.each do |k, v|
<span class="gl-font-weight-bold">#{k}:</span> #{v}
2017-09-10 17:25:29 +05:30
%br
2021-12-11 22:18:48 +05:30
%h4.gl-mt-6= _('Request')
2017-09-10 17:25:29 +05:30
%pre
2018-11-18 11:00:15 +05:30
:escaped
2020-05-24 23:13:21 +05:30
#{Gitlab::Json.pretty_generate(hook_log.request_data)}
2021-12-11 22:18:48 +05:30
%h5= _('Headers')
2017-09-10 17:25:29 +05:30
%pre
2021-12-11 22:18:48 +05:30
- hook_log.request_headers.each do |k, v|
<span class="gl-font-weight-bold">#{k}:</span> #{v}
2017-09-10 17:25:29 +05:30
%br
2021-12-11 22:18:48 +05:30