offer a selection of possible reactions
Ted Unangst tedu@tedunangst.com
Thu, 23 Jan 2020 23:34:38 -0500
2 files changed,
13 insertions(+),
0 deletions(-)
M
views/account.html
→
views/account.html
@@ -14,9 +14,21 @@ <p><label class="button" for="omitimages">omit images:</label>
<input tabindex=1 type="checkbox" id="omitimages" name="omitimages" value="omitimages" {{ if .User.Options.OmitImages }}checked{{ end }}><span></span> <p><label class="button" for="maps">apple map links:</label> <input tabindex=1 type="checkbox" id="maps" name="maps" value="apple" {{ if eq "apple" .User.Options.MapLink }}checked{{ end }}><span></span> +<p><label class="button" for="reaction">reaction:</label> +<select tabindex=1 name="reaction"> +<option {{ and (eq .User.Options.Reaction "😞") "selected" }}>😞</option> +<option {{ and (eq .User.Options.Reaction "\U0001F937") "selected" }}>{{ "\U0001F937" }}</option> +<option {{ and (eq .User.Options.Reaction "🙈") "selected" }}>🙈</option> +<option {{ and (eq .User.Options.Reaction "🍆") "selected" }}>🍆</option> +<option {{ and (eq .User.Options.Reaction "\U0001F32E") "selected" }}>{{ "\U0001F32E" }}</option> +<option {{ and (eq .User.Options.Reaction "🗿") "selected" }}>🗿</option> +<option {{ and (eq .User.Options.Reaction "\U0001FA93") "selected" }}>{{ "\U0001FA93" }}</option> +<option {{ and (eq .User.Options.Reaction "\U0001F9BE") "selected" }}>{{ "\U0001F9BE" }}</option> +</select> <p><button>update settings</button> </form> </div> +<hr> <div> <form action="/chpass" method="POST"> <input type="hidden" name="CSRF" value="{{ .LogoutCSRF }}">