blob: fc8be8629149d15139c203f8fbc924718919c959 [file] [log] [blame]
Giorgi Lekveishvili46743d42023-12-10 15:47:23 +04001{{ define "task" }}
2<li aria-busy="{{ eq .Status 0 }}">
3 {{ .Title }}{{ if .Err }} - {{ .Err.Error }} {{ end }}
4 <ul>
5 {{ range .Subtasks }}
6 {{ template "task" . }}
7 {{ end }}
8 </ul>
9</li>
10{{ end }}
11
Giorgi Lekveishvili081f18f2023-11-07 14:58:10 +040012<!DOCTYPE html>
13<html lang="en" data-theme="light">
14 <head>
15 <link rel="stylesheet" href="/static/pico.min.css">
16 <meta charset="utf-8" />
17 <meta name="viewport" content="width=device-width, initial-scale=1" />
Giorgi Lekveishvili46743d42023-12-10 15:47:23 +040018 {{ if not (or (eq .Root.Status 2) (eq .Root.Status 3))}}
19 <meta http-equiv="refresh" content="1">
20 {{ end }}
Giorgi Lekveishvili081f18f2023-11-07 14:58:10 +040021 </head>
22 <body>
Giorgi Lekveishvili46743d42023-12-10 15:47:23 +040023 <main class="container">
24 <ul>
25 {{ template "task" .Root }}
26 </ul>
27 </main>
Giorgi Lekveishvili081f18f2023-11-07 14:58:10 +040028 </body>
29</html>