2024-01-18 02:47:08 +00:00
|
|
|
{{/*
|
|
|
|
* Copyright (C) 2024 Umorpha Systems
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
*/}}
|
|
|
|
{{- define "page-title" }}Jobs{{ end }}
|
|
|
|
{{- define "page-content" }}
|
|
|
|
<table class="jobs">
|
|
|
|
<thead>
|
|
|
|
<tr><th>Job ID</th><th>Triggered By</th><th>Command</th><th>Status</th></tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{{- range $job := .Jobs }}
|
|
|
|
<tr class="job job-{{ $job.Status }}">
|
2024-01-18 04:15:20 +00:00
|
|
|
<td class="job-id"><a href="{{ $job.ID }}">{{ $job.ID }}</a></td>
|
|
|
|
<td class="job-triggers"><a href="{{ $job.ID }}">{{ template "triggers.html.tmpl" $job }}</a></td>
|
2024-01-23 01:31:22 +00:00
|
|
|
<td class="job-command"><a href="{{ $job.ID }}"><pre>{{ $job.Command }}</pre></a></td>
|
2024-01-25 17:09:32 +00:00
|
|
|
<td class="job-status"><a href="{{ $job.ID }}">{{ $job.Status }}{{ if gt (len $job.StatusMsg) 0 }}{{ end }}</a></td>
|
2024-01-18 02:47:08 +00:00
|
|
|
</tr>
|
|
|
|
{{- end }}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
{{- end }}
|
|
|
|
{{- template "page.html.tmpl" . }}
|