Merge branch 'master' of git.freesoftwareextremist.com:public/bloat
[bloat] / templates / settings.tmpl
1 {{with .Data}}
2 {{template "header.tmpl" (WithContext .HeaderData $.Ctx)}}
3 {{template "navigation.tmpl" (WithContext .NavbarData $.Ctx)}}
4 <div class="page-title"> Settings </div>
5
6 <form id="settings-form" action="/settings" method="POST">
7         <input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
8         <div class="settings-form-field">
9                 <label for="visibility"> Default scope </label>
10                 <select id="visibility" name="visibility">
11                         <option value="public" {{if eq .Settings.DefaultVisibility "public"}}selected{{end}}>Public</option>
12                         <option value="unlisted" {{if eq .Settings.DefaultVisibility "unlisted"}}selected{{end}}>Unlisted</option>
13                         <option value="private" {{if eq .Settings.DefaultVisibility "private"}}selected{{end}}>Private</option>
14                         <option value="direct" {{if eq .Settings.DefaultVisibility "direct"}}selected{{end}}>Direct</option>
15                 </select>
16         </div>
17         <div class="settings-form-field">
18                 <input id="copy-scope" name="copy_scope" type="checkbox" value="true" {{if .Settings.CopyScope}}checked{{end}}>
19                 <label for="copy-scope"> Copy scope when replying </label>
20         </div>
21         <div class="settings-form-field">
22                 <input id="thread-tab" name="thread_in_new_tab" type="checkbox" value="true" {{if .Settings.ThreadInNewTab}}checked{{end}}>
23                 <label for="thread-tab"> Open threads in new tab from timeline </label>
24         </div>
25         <div class="settings-form-field">
26                 <input id="mask-nsfw" name="mask_nsfw" type="checkbox" value="true" {{if .Settings.MaskNSFW}}checked{{end}}>
27                 <label for="mask-nsfw"> Mask NSFW Attachments </label>
28         </div>
29         <div class="settings-form-field">
30                 <input id="fluoride-mode" name="fluoride_mode" type="checkbox" value="true" {{if .Settings.FluorideMode}}checked{{end}}>
31                 <label for="fluoride-mode"> Enable Fluoride Mode </label>
32         </div>
33         <div class="settings-form-field">
34                 <input id="dark-mode" name="dark_mode" type="checkbox" value="true" {{if .Settings.DarkMode}}checked{{end}}>
35                 <label for="dark-mode"> Use dark theme </label>
36         </div>
37         <button type="submit"> Save </button>
38 </form>
39
40 {{template "footer.tmpl"}}
41 {{end}}