| Giorgi Lekveishvili | 46743d4 | 2023-12-10 15:47:23 +0400 | [diff] [blame^] | 1 | {{ 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 Lekveishvili | 081f18f | 2023-11-07 14:58:10 +0400 | [diff] [blame] | 12 | <!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 Lekveishvili | 46743d4 | 2023-12-10 15:47:23 +0400 | [diff] [blame^] | 18 | {{ if not (or (eq .Root.Status 2) (eq .Root.Status 3))}} |
| 19 | <meta http-equiv="refresh" content="1"> |
| 20 | {{ end }} |
| Giorgi Lekveishvili | 081f18f | 2023-11-07 14:58:10 +0400 | [diff] [blame] | 21 | </head> |
| 22 | <body> |
| Giorgi Lekveishvili | 46743d4 | 2023-12-10 15:47:23 +0400 | [diff] [blame^] | 23 | <main class="container"> |
| 24 | <ul> |
| 25 | {{ template "task" .Root }} |
| 26 | </ul> |
| 27 | </main> |
| Giorgi Lekveishvili | 081f18f | 2023-11-07 14:58:10 +0400 | [diff] [blame] | 28 | </body> |
| 29 | </html> |