24 lines
882 B
Cheetah
24 lines
882 B
Cheetah
{{/*
|
|
* 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>Created At</th><th>Triggered By</th><th>Command</th><th>Status</th></tr>
|
|
</thead>
|
|
<tbody>
|
|
{{- range $job := .Jobs }}
|
|
<tr class="job job-{{ $job.Status }}">
|
|
<td class="job-created-at"><a href="{{ $job.ID }}">{{ fmtDatetime $job.CreatedAt }}</a></td>
|
|
<td class="job-triggers"><a href="{{ $job.ID }}">{{ template "triggers.html.tmpl" $job }}</a></td>
|
|
<td class="job-command"><a href="{{ $job.ID }}"><pre>{{ $job.Command }}</pre></a></td>
|
|
<td class="job-status"><a href="{{ $job.ID }}">{{ $job.Status }}{{ if gt (len $job.StatusMsg) 0 }}{{ end }}</a></td>
|
|
</tr>
|
|
{{- end }}
|
|
</tbody>
|
|
</table>
|
|
{{- end }}
|
|
{{- template "page.html.tmpl" . }}
|