this repo has no description
1{{define "title"}}knots{{end}} 2 3{{define "content"}} 4 <a href="/">back to timeline</a> 5 <h1>knots</h1> 6 7 <h2>register</h2> 8 put in a domain, and use the key while booting up your knotserver 9 <form hx-post="/knots/key"> 10 <label for="domain">domain:</label> 11 <input type="text" id="domain" name="domain" required> 12 <button type="text">generate key</button> 13 </form> 14 15 <h3>my knots</h3> 16 <ul id="my-knots"> 17 {{range .Registrations}} 18 {{ if .Registered }} 19 <li> 20 <code>domain: <a href="/knots/{{.Domain}}">{{.Domain}}</a></code><br> 21 <code>opened by: {{.ByDid}}</code><br> 22 <code>on: {{.Created}}</code><br> 23 <code>registered on: {{.Registered}}</code> 24 </li> 25 {{ end }} 26 {{else}} 27 <p>you don't have any knots yet</p> 28 {{end}} 29 </ul> 30 <h3>pending registrations</h3> 31 <ul id="pending-registrations"> 32 {{range .Registrations}} 33 {{ if not .Registered }} 34 <li> 35 <code>domain: <a href="/knots/{{.Domain}}">{{.Domain}}</a></code><br> 36 <code>opened by: {{.ByDid}}</code><br> 37 <code>on: {{.Created}}</code><br> 38 <code>pending registration</code> 39 <button hx-post="/knots/{{.Domain}}/init">initialize</button> 40 </li> 41 {{ end }} 42 {{else}} 43 <p>no registrations yet</p> 44 {{end}} 45 </ul> 46{{end}}