HTML · 2518 bytes Raw Blame History
1 {{ define "page" -}}
2 {{ template "repo-header" . }}
3 <section class="shithub-actions-run-page shithub-actions-log-page">
4 <header class="shithub-actions-run-head">
5 <div>
6 <a href="{{ .Log.BackHref }}" class="shithub-actions-back">{{ octicon "workflow" }} {{ .Log.Run.Title }} #{{ .Log.Run.RunIndex }}</a>
7 <h1>
8 <span class="shithub-actions-state shithub-actions-state-{{ .Log.Step.StateClass }}">{{ octicon .Log.Step.StateIcon }}</span>
9 {{ .Log.Step.Name }}
10 </h1>
11 <p>
12 {{ .Log.Job.Name }} · {{ .Log.Step.StateText }} · {{ .Log.Step.Duration }}
13 {{ if .Log.Step.LogByteCount }} · {{ .Log.Step.LogByteCount }} bytes{{ end }}
14 </p>
15 </div>
16 <div class="shithub-actions-run-head-actions">
17 <a class="shithub-button" href="{{ .Log.BackHref }}">{{ octicon "list-unordered" }} Run</a>
18 {{ if .Log.DownloadURL }}<a class="shithub-button" href="{{ .Log.DownloadURL }}">{{ octicon "download" }} Download</a>{{ end }}
19 </div>
20 </header>
21
22 <div class="shithub-actions-run-layout">
23 <aside class="shithub-actions-sidebar shithub-actions-run-sidebar" aria-label="Run navigation">
24 <a href="{{ .Log.BackHref }}" class="shithub-actions-nav-item">{{ octicon "home" }} <span>Summary</span></a>
25 <div class="shithub-actions-sidebar-section">
26 <h2>Steps</h2>
27 {{ range .Log.Job.Steps }}
28 <a href="{{ .LogHref }}" class="shithub-actions-nav-item{{ if eq .StepIndex $.Log.Step.StepIndex }} is-active{{ end }}"{{ if eq .StepIndex $.Log.Step.StepIndex }} aria-current="page"{{ end }}>
29 <span class="shithub-actions-state shithub-actions-state-{{ .StateClass }}">{{ octicon .StateIcon }}</span>
30 <span>{{ .Name }}</span>
31 </a>
32 {{ end }}
33 </div>
34 </aside>
35
36 <div class="shithub-actions-run-main">
37 <section class="shithub-actions-log-panel">
38 <header>
39 <div>
40 <h2>{{ .Log.Step.Name }}</h2>
41 <p>{{ .Log.LogSource }}{{ if .Log.LogTruncated }} · truncated to 1 MiB{{ end }}</p>
42 </div>
43 </header>
44 {{ if .Log.LogError }}
45 <p class="shithub-actions-log-empty">{{ .Log.LogError }}</p>
46 {{ else if .Log.LogText }}
47 <pre class="shithub-actions-log-output"><code>{{ .Log.LogText }}</code></pre>
48 {{ else }}
49 <p class="shithub-actions-log-empty">No log output has been recorded for this step.</p>
50 {{ end }}
51 </section>
52 </div>
53 </div>
54 </section>
55 {{- end }}