all repos — honk @ 901dcdc8e82167d5145ea2b58aac40f6133063ed

my fork of honk

views/account.html (view raw)

 1{{ template "header.html" . }}
 2<main>
 3<div class="info">
 4<p>account - <a href="/logout?CSRF={{ .LogoutCSRF }}">logout</a>
 5<p>username: {{ .User.Name }}
 6<div>
 7<form id="aboutform" action="/saveuser" method="POST">
 8<input type="hidden" name="CSRF" value="{{ .UserCSRF }}">
 9<p>about me:
10<p><textarea name="whatabout">{{ .WhatAbout }}</textarea>
11<p><label class="button" for="skinny">skinny layout:</label>
12<input tabindex=1 type="checkbox" id="skinny" name="skinny" value="skinny" {{ if .User.Options.SkinnyCSS }}checked{{ end }}><span></span>
13<p><label class="button" for="omitimages">omit images:</label>
14<input tabindex=1 type="checkbox" id="omitimages" name="omitimages" value="omitimages" {{ if .User.Options.OmitImages }}checked{{ end }}><span></span>
15<p><label class="button" for="maps">apple map links:</label>
16<input tabindex=1 type="checkbox" id="maps" name="maps" value="apple" {{ if eq "apple" .User.Options.MapLink }}checked{{ end }}><span></span>
17<p><label class="button" for="reaction">reaction:</label>
18<select tabindex=1 name="reaction">
19<option {{ and (eq .User.Options.Reaction "😞") "selected" }}>😞</option>
20<option {{ and (eq .User.Options.Reaction "\U0001F937") "selected" }}>{{ "\U0001F937" }}</option>
21<option {{ and (eq .User.Options.Reaction "🙈") "selected" }}>🙈</option>
22<option {{ and (eq .User.Options.Reaction "🍆") "selected" }}>🍆</option>
23<option {{ and (eq .User.Options.Reaction "\U0001F32E") "selected" }}>{{ "\U0001F32E" }}</option>
24<option {{ and (eq .User.Options.Reaction "🗿") "selected" }}>🗿</option>
25<option {{ and (eq .User.Options.Reaction "\U0001FA93") "selected" }}>{{ "\U0001FA93" }}</option>
26<option {{ and (eq .User.Options.Reaction "\U0001F9BE") "selected" }}>{{ "\U0001F9BE" }}</option>
27</select>
28<p><button>update settings</button>
29</form>
30</div>
31<hr>
32<div>
33<form action="/chpass" method="POST">
34<input type="hidden" name="CSRF" value="{{ .LogoutCSRF }}">
35<p>change password
36<p><input tabindex=1 type="password" name="oldpass"> - oldpass
37<p><input tabindex=1 type="password" name="newpass"> - newpass
38<p><button>change</button>
39</form>
40</div>
41</main>