blob: c50457e9a08c6d303c0eaa67a1e46315feafd3ac [file] [log] [blame]
{{ define "task" }}
{{ range . }}
<li aria-busy="{{ eq .Status 0 }}">
{{ .Title }}{{ if .Err }} - {{ .Err.Error }} {{ end }}
{{ if .Subtasks }}
<ul>
{{ template "task" .Subtasks }}
</ul>
{{ end }}
</li>
{{ end }}
{{ end }}
<!DOCTYPE html>
<html lang="en" data-theme="light">
<head>
<link rel="stylesheet" href="/static/pico.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/hack-font@3/build/web/hack.css">
<link rel="stylesheet" href="/static/main.css">
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
{{ if not (or (eq .Root.Status 2) (eq .Root.Status 3))}}
<meta http-equiv="refresh" content="60">
{{ end }}
</head>
<body>
<nav id="menu" class="container-fluid">
<ul>
<li class="dodo">do<span class="highlight">do:</span></li>
</ul>
<ul>
<li><a href="#">register</a></li>
<li><a href="#">apps</a></li>
<li><a href="#" style="border-right: none;">about</a></li>
</ul>
</nav>
<main class="container">
<article>
<ul>
{{ template "task" .Root.Subtasks }}
</ul>
</article>
{{ if .DNSRecords }}
<div>
<form action="" method="POST">
You will have to publish following DNS records via your domain registrar.
<textarea rows="7">{{ .DNSRecords }}</textarea>
<label for="domain-registrar">Domain Registrar</label>
<select id="domain-registrar" required tabindex="1">
<option value="" selected>Select registrar</option>
<option value="gandi">Gandi</option>
<option value="namecheap">Namecheap</option>
</select>
<label for="api-token">API Token</label>
<input
type="text"
id="api-token"
name="api-token"
required
autofocus
tabindex="2"
/>
<button type="submit" tabindex="3">Update</button>
</form>
</div>
{{ end }}
</main>
</body>
</html>