2024-01-18 04:15:20 +00:00
|
|
|
{{/*
|
|
|
|
* Copyright (C) 2024 Umorpha Systems
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
*/}}
|
|
|
|
{{- define "page-title" }}Job {{ .Job.ID }}{{ end }}
|
|
|
|
{{- define "page-content" }}
|
|
|
|
<section>
|
|
|
|
<dl class="job">
|
|
|
|
<dt class="job-status job-{{ .Job.Status }}">Status</dt>
|
|
|
|
<dd class="job-status job-{{ .Job.Status }}">{{ .Job.Status }}</dd>
|
|
|
|
|
|
|
|
<dt class="job-triggers">Triggers</dt>
|
|
|
|
<dd class="job-triggers">{{ template "triggers.html.tmpl" .Job }}</dd>
|
|
|
|
|
|
|
|
<dt class="job-command">Command</dt>
|
|
|
|
<dd class="job-command"><tt>{{ .Job.Command }}</tt></dd>
|
|
|
|
</dl>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<section>
|
|
|
|
<h2>Artifacts</h2>
|
2024-01-18 19:55:53 +00:00
|
|
|
{{- if .Job.Status.Finished }}
|
2024-01-18 21:17:26 +00:00
|
|
|
{{- if gt (len .ArtifactNames) 0 }}
|
2024-01-18 19:55:53 +00:00
|
|
|
<ul>
|
2024-01-18 21:17:26 +00:00
|
|
|
{{- range $name := .ArtifactNames }}
|
|
|
|
<li><a href="artifacts/{{ $name }}"><tt>{{ $name }}</tt></a></li>
|
2024-01-18 19:55:53 +00:00
|
|
|
{{- end }}
|
|
|
|
</ul>
|
2024-01-18 04:15:20 +00:00
|
|
|
{{- else }}
|
2024-01-18 21:17:26 +00:00
|
|
|
<p>This job had not artifacts.<p>
|
|
|
|
{{- end }}
|
|
|
|
{{- else }}
|
2024-01-18 04:15:20 +00:00
|
|
|
<p>Artifacts are not available until the job has finished.</p>
|
|
|
|
{{- end }}
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<section>
|
|
|
|
<h2>Log</h2>
|
2024-01-18 19:55:53 +00:00
|
|
|
{{- if .Job.Status.HasLog }}
|
2024-01-18 04:15:20 +00:00
|
|
|
<iframe src="log.txt"></iframe>
|
|
|
|
{{- else }}
|
|
|
|
<p>There is no log because the job has not started yet.</p>
|
|
|
|
{{- end }}
|
|
|
|
</section>
|
|
|
|
{{- end }}
|
|
|
|
{{- template "page.html.tmpl" . }}
|