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 }}
|
|
|
|
<ul>
|
|
|
|
{{- range $name := .AttachmentNames }}
|
|
|
|
<li><a href="attachments/{{ $name }}"><tt>{{ $name }}</tt></a></li>
|
|
|
|
{{- end }}
|
|
|
|
</ul>
|
2024-01-18 04:15:20 +00:00
|
|
|
{{- else }}
|
|
|
|
<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" . }}
|