all repos — honk @ cbc2665446d677cb5c022e0f0905b69327b7349c

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="avahex">hex avatar:</label>
14<input tabindex=1 type="checkbox" id="avahex" name="avahex" value="avahex" {{ if .User.Options.Avahex }}checked{{ end }}><span></span>
15<p><label class="button" for="omitimages">omit images:</label>
16<input tabindex=1 type="checkbox" id="omitimages" name="omitimages" value="omitimages" {{ if .User.Options.OmitImages }}checked{{ end }}><span></span>
17<p><label class="button" for="mentionall">mention all:</label>
18<input tabindex=1 type="checkbox" id="mentionall" name="mentionall" value="mentionall" {{ if .User.Options.MentionAll }}checked{{ end }}><span></span>
19
20<p><label class="button" for="maps">apple map links:</label>
21<input tabindex=1 type="checkbox" id="maps" name="maps" value="apple" {{ if eq "apple" .User.Options.MapLink }}checked{{ end }}><span></span>
22<p><label class="button" for="reaction">reaction:</label>
23<select tabindex=1 name="reaction">
24<option {{ and (eq .User.Options.Reaction "none") "selected" }}>none</option>
25<option {{ and (eq .User.Options.Reaction "\U0001F61E") "selected" }}>{{ "\U0001F61E" }}</option>
26<option {{ and (eq .User.Options.Reaction "\U0001F937") "selected" }}>{{ "\U0001F937" }}</option>
27<option {{ and (eq .User.Options.Reaction "\U0001F648") "selected" }}>{{ "\U0001F648" }}</option>
28<option {{ and (eq .User.Options.Reaction "\U0001F9BE") "selected" }}>{{ "\U0001F9BE" }}</option>
29<option {{ and (eq .User.Options.Reaction "\U0001F346") "selected" }}>{{ "\U0001F346" }}</option>
30<option {{ and (eq .User.Options.Reaction "\U0001F351") "selected" }}>{{ "\U0001F351" }}</option>
31<option {{ and (eq .User.Options.Reaction "\U0001F32E") "selected" }}>{{ "\U0001F32E" }}</option>
32<option {{ and (eq .User.Options.Reaction "\U0001F951") "selected" }}>{{ "\U0001F951" }}</option>
33<option {{ and (eq .User.Options.Reaction "\U0001F5FF") "selected" }}>{{ "\U0001F5FF" }}</option>
34<option {{ and (eq .User.Options.Reaction "\U0001F99A") "selected" }}>{{ "\U0001F99A" }}</option>
35<option {{ and (eq .User.Options.Reaction "\U0001F3BB") "selected" }}>{{ "\U0001F3BB" }}</option>
36<option {{ and (eq .User.Options.Reaction "\U0001FA93") "selected" }}>{{ "\U0001FA93" }}</option>
37<option {{ and (eq .User.Options.Reaction "\U0001F1EB") "selected" }}>{{ "\U0001F1EB" }}</option>
38<option {{ and (eq .User.Options.Reaction "\U0001F1FD") "selected" }}>{{ "\U0001F1FD" }}</option>
39</select>
40<p><button>update settings</button>
41</form>
42</div>
43<hr>
44<div>
45<form action="/chpass" method="POST">
46<input type="hidden" name="CSRF" value="{{ .LogoutCSRF }}">
47<p>change password
48<p><input tabindex=1 type="password" name="oldpass"> - oldpass
49<p><input tabindex=1 type="password" name="newpass"> - newpass
50<p><button>change</button>
51</form>
52</div>
53</main>