/
workflow_run_detail_component.html.haml
51 lines (51 loc) · 2.48 KB
/
workflow_run_detail_component.html.haml
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
%ul.nav.nav-tabs#workflow-run-tabs{ role: 'tablist' }
%li.nav-item{ role: 'presentation' }
%a.nav-link.active{ id: "incoming-webhook-tab#{id}", data: { toggle: 'tab' }, href: "#incoming-webhook-tab-content#{id}",
role: 'tab', aria: { controls: "incoming-webhook-tab-content#{id}", selected: 'true' } }
Webhook from #{scm_vendor}
%li.nav-item{ role: 'presentation' }
%a.nav-link{ id: "scm-reports-tab#{id}", data: { toggle: 'tab' }, href: "#scm-reports-tab-content#{id}",
role: 'tab', aria: { controls: "scm-reports-tab-content#{id}", selected: 'false' } }
Reports to the SCM
%li.nav-item{ role: 'presentation' }
%a.nav-link{ id: "artifacts#{id}", data: { toggle: 'tab' }, href: "#artifacts-tab-content#{id}",
role: 'tab', aria: { controls: "artifacts-tab-content#{id}", selected: 'false' } }
Artifacts
.tab-content.p-3#workflow-run-tabs-content
.tab-pane.fade.show.active{ id: "incoming-webhook-tab-content#{id}", role: 'tabpanel',
aria: { labelledby: "incoming-webhook-tab#{id}" } }
%h5 Webhook URL
%pre.border.p-2#response-url
= response_url
%h5 Webhook Request Headers
%pre.border.p-2#request-headers
= request_headers
%h5 Webhook Response Body
%pre.border.p-2#response-body
= response_body
%h5 Webhook Request Payload
%pre.border.p-2#request-payload
= pretty_request_payload
.tab-pane.fade{ id: "scm-reports-tab-content#{id}", role: 'tabpanel',
aria: { labelledby: "scm-reports-tab#{id}" } }
- if status_reports.any?
.list-group.list-group-flush
- status_reports.each do |status_report|
.list-group-item
%h6 Response body
%p
%span.badge{ class: status_report.status_class }= status_report.status&.humanize
%pre.border.p-2#status-report-response-body
= status_report.response_body
%h6 Request parameters
%pre.border.p-2#status-report-request-parameters
= status_report.pretty_request_parameters
%small.text-nowrap{ title: l(status_report.created_at.utc) }
Sent #{time_ago_in_words(status_report.created_at)} ago
- else
No status reports
.tab-pane.fade{ id: "artifacts-tab-content#{id}", role: 'tabpanel',
aria: { labelledby: "artifacts#{id}" } }
%h5 Artifacts
%ul
= render(WorkflowArtifactsPerStepComponent.with_collection(artifacts))