blob: c50457e9a08c6d303c0eaa67a1e46315feafd3ac [file] [log] [blame]
Giorgi Lekveishvili46743d42023-12-10 15:47:23 +04001{{ define "task" }}
Giorgi Lekveishvilidf874f42023-12-11 15:46:46 +04002{{ range . }}
Giorgi Lekveishvili46743d42023-12-10 15:47:23 +04003<li aria-busy="{{ eq .Status 0 }}">
4 {{ .Title }}{{ if .Err }} - {{ .Err.Error }} {{ end }}
Giorgi Lekveishvilidf874f42023-12-11 15:46:46 +04005 {{ if .Subtasks }}
Giorgi Lekveishvili46743d42023-12-10 15:47:23 +04006 <ul>
Giorgi Lekveishvilidf874f42023-12-11 15:46:46 +04007 {{ template "task" .Subtasks }}
Giorgi Lekveishvili46743d42023-12-10 15:47:23 +04008 </ul>
Giorgi Lekveishvilidf874f42023-12-11 15:46:46 +04009 {{ end }}
Giorgi Lekveishvili46743d42023-12-10 15:47:23 +040010</li>
11{{ end }}
Giorgi Lekveishvilidf874f42023-12-11 15:46:46 +040012{{ end }}
Giorgi Lekveishvili46743d42023-12-10 15:47:23 +040013
Giorgi Lekveishvili081f18f2023-11-07 14:58:10 +040014<!DOCTYPE html>
15<html lang="en" data-theme="light">
16 <head>
Giorgi Lekveishvilidf874f42023-12-11 15:46:46 +040017 <link rel="stylesheet" href="/static/pico.min.css">
18 <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/hack-font@3/build/web/hack.css">
19 <link rel="stylesheet" href="/static/main.css">
Giorgi Lekveishvili081f18f2023-11-07 14:58:10 +040020 <meta charset="utf-8" />
21 <meta name="viewport" content="width=device-width, initial-scale=1" />
Giorgi Lekveishvili46743d42023-12-10 15:47:23 +040022 {{ if not (or (eq .Root.Status 2) (eq .Root.Status 3))}}
Giorgi Lekveishvili1caed362023-12-13 16:29:43 +040023 <meta http-equiv="refresh" content="60">
Giorgi Lekveishvili46743d42023-12-10 15:47:23 +040024 {{ end }}
Giorgi Lekveishvili081f18f2023-11-07 14:58:10 +040025 </head>
26 <body>
Giorgi Lekveishvilidf874f42023-12-11 15:46:46 +040027 <nav id="menu" class="container-fluid">
Giorgi Lekveishvili46743d42023-12-10 15:47:23 +040028 <ul>
Giorgi Lekveishvilidf874f42023-12-11 15:46:46 +040029 <li class="dodo">do<span class="highlight">do:</span></li>
30 </ul>
31 <ul>
32 <li><a href="#">register</a></li>
33 <li><a href="#">apps</a></li>
34 <li><a href="#" style="border-right: none;">about</a></li>
35 </ul>
36 </nav>
37 <main class="container">
Giorgi Lekveishvili1caed362023-12-13 16:29:43 +040038 <article>
39 <ul>
40 {{ template "task" .Root.Subtasks }}
41 </ul>
42 </article>
Giorgi Lekveishvilicd9e42c2023-12-13 09:49:44 +040043 {{ if .DNSRecords }}
Giorgi Lekveishvili1caed362023-12-13 16:29:43 +040044 <div>
45 <form action="" method="POST">
46 You will have to publish following DNS records via your domain registrar.
47 <textarea rows="7">{{ .DNSRecords }}</textarea>
48 <label for="domain-registrar">Domain Registrar</label>
49 <select id="domain-registrar" required tabindex="1">
50 <option value="" selected>Select registrar</option>
51 <option value="gandi">Gandi</option>
52 <option value="namecheap">Namecheap</option>
53 </select>
54 <label for="api-token">API Token</label>
55 <input
56 type="text"
57 id="api-token"
58 name="api-token"
59 required
60 autofocus
61 tabindex="2"
62 />
63 <button type="submit" tabindex="3">Update</button>
64 </form>
65 </div>
Giorgi Lekveishvilicd9e42c2023-12-13 09:49:44 +040066 {{ end }}
Giorgi Lekveishvili46743d42023-12-10 15:47:23 +040067 </main>
Giorgi Lekveishvili081f18f2023-11-07 14:58:10 +040068 </body>
69</html>