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