this repo has no description
1{{define "title"}}{{ .Registration.Domain }}{{end}}
2
3{{define "content"}}
4 <a href="/">back to timeline</a>
5 <a href="/knots">back to all knots</a>
6 <h1>{{.Registration.Domain}}</h1>
7 <p>
8 <code>
9 opened by: {{.Registration.ByDid}}
10 {{ if eq $.User.Did $.Registration.ByDid }}
11 (you)
12 {{ end }}
13 </code><br>
14 <code>on: {{.Registration.Created}}</code><br>
15 {{ if .Registration.Registered }}
16 <code>registered on: {{.Registration.Registered}}</code>
17 {{ else }}
18 <code>pending registration</code>
19 <button hx-post="/knots/{{.Domain}}/init">initialize</button>
20 {{ end }}
21 </p>
22
23 {{ if .Registration.Registered }}
24 <h3> members </h3>
25 <ol>
26 {{ range $.Members }}
27 <li>{{.}}</li>
28 {{ else }}
29 <p>no members</p>
30 {{ end }}
31 {{ end }}
32 </ol>
33
34 {{ if $.IsOwner }}
35 <h3>add member</h3>
36 <form hx-put="/knots/{{.Registration.Domain}}/member">
37 <label for="member">did or handle:</label>
38 <input type="text" id="member" name="member" required>
39 <button type="text">add member</button>
40 </form>
41 {{ end }}
42{{end}}