this repo has no description
1{{ define "title" }}settings{{ end }} 2 3{{ define "content" }} 4 <h1>settings</h1> 5 6 <h2>profile</h2> 7 <p><strong>handle:</strong> {{ .LoggedInUser.Handle }}</p> 8 <p><strong>did:</strong> {{ .LoggedInUser.Did }}</p> 9 <p><strong>pds:</strong> {{ .LoggedInUser.Pds }}</p> 10 11 <h2>ssh keys</h2> 12 <form hx-put="/settings/keys"> 13 <label for="name">key name:</label> 14 <input type="text" id="name" name="name" required /> 15 16 <label for="key">pub key:</label> 17 <textarea 18 id="key" 19 name="key" 20 placeholder="ssh-rsa AAAAAA..." 21 required 22 ></textarea> 23 24 <button class="btn my-2" type="submit">add key</button> 25 </form> 26 27 <h3>existing keys</h3> 28 <ul id="key-list"> 29 {{ range .PubKeys }} 30 <li> 31 <strong>{{ .Name }}</strong><br /> 32 <code>{{ .Key }}</code> 33 </li> 34 {{ else }} 35 <p>no ssh keys added yet</p> 36 {{ end }} 37 </ul> 38{{ end }}