Add description for fluoride mode
[bloat] / templates / settings.tmpl
1 {{with .Data}}
2 {{template "header.tmpl" (WithContext .CommonData $.Ctx)}}
3 <div class="page-title"> Settings </div>
4
5 <form id="settings-form" action="/settings" method="POST">
6         <input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
7         <div class="settings-form-field">
8                 <label for="visibility"> Default scope </label>
9                 <select id="visibility" name="visibility">
10                         <option value="public" {{if eq .Settings.DefaultVisibility "public"}}selected{{end}}>Public</option>
11                         <option value="unlisted" {{if eq .Settings.DefaultVisibility "unlisted"}}selected{{end}}>Unlisted</option>
12                         <option value="private" {{if eq .Settings.DefaultVisibility "private"}}selected{{end}}>Private</option>
13                         <option value="direct" {{if eq .Settings.DefaultVisibility "direct"}}selected{{end}}>Direct</option>
14                 </select>
15         </div>
16         <div class="settings-form-field">
17                 <input id="copy-scope" name="copy_scope" type="checkbox" value="true" {{if .Settings.CopyScope}}checked{{end}}>
18                 <label for="copy-scope"> Copy scope when replying </label>
19         </div>
20         <div class="settings-form-field">
21                 <input id="thread-tab" name="thread_in_new_tab" type="checkbox" value="true" {{if .Settings.ThreadInNewTab}}checked{{end}}>
22                 <label for="thread-tab"> Open threads in new tab from timeline </label>
23         </div>
24         <div class="settings-form-field">
25                 <input id="mask-nsfw" name="mask_nsfw" type="checkbox" value="true" {{if .Settings.MaskNSFW}}checked{{end}}>
26                 <label for="mask-nsfw"> Mask NSFW attachments </label>
27         </div>
28         <div class="settings-form-field">
29                 <input id="auto-refresh-notifications" name="auto_refresh_notifications" type="checkbox" value="true" {{if .Settings.AutoRefreshNotifications}}checked{{end}}>
30                 <label for="auto-refresh-notifications"> Auto refresh notifications </label>
31         </div>
32         <div class="settings-form-field">
33                 <input id="fluoride-mode" name="fluoride_mode" type="checkbox" value="true" {{if .Settings.FluorideMode}}checked{{end}}>
34                 <label for="fluoride-mode"> Enable <abbr title="Enable JavaScript based functionality, e.g., like/retweet without page reload and reply preview on thread page">fluoride mode</abbr> </label>
35         </div>
36         <div class="settings-form-field">
37                 <input id="dark-mode" name="dark_mode" type="checkbox" value="true" {{if .Settings.DarkMode}}checked{{end}}>
38                 <label for="dark-mode"> Use dark theme </label>
39         </div>
40         <button type="submit"> Save </button>
41 </form>
42
43 {{template "footer.tmpl"}}
44 {{end}}