2020-01-14 16:57:16 +00:00
|
|
|
{{with .Data}}
|
2020-02-18 22:15:37 +00:00
|
|
|
{{template "header.tmpl" (WithContext .CommonData $.Ctx)}}
|
2019-12-27 08:06:43 +00:00
|
|
|
<div class="page-title"> Settings </div>
|
|
|
|
|
|
|
|
<form id="settings-form" action="/settings" method="POST">
|
2020-01-25 10:07:06 +00:00
|
|
|
<input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
|
2020-10-19 06:51:23 +00:00
|
|
|
<div class="settings-form-field">
|
|
|
|
<label for="visibility"> Default format </label>
|
|
|
|
{{$defFormat := .Settings.DefaultFormat}}
|
|
|
|
<select id="post-format" name="format">
|
|
|
|
{{range .PostFormats}}
|
|
|
|
<option value="{{.Type}}" {{if eq $defFormat .Type}}selected{{end}}>{{.Name}}</option>
|
|
|
|
{{end}}
|
|
|
|
</select>
|
|
|
|
</div>
|
2019-12-27 08:06:43 +00:00
|
|
|
<div class="settings-form-field">
|
|
|
|
<label for="visibility"> Default scope </label>
|
|
|
|
<select id="visibility" name="visibility">
|
|
|
|
<option value="public" {{if eq .Settings.DefaultVisibility "public"}}selected{{end}}>Public</option>
|
|
|
|
<option value="unlisted" {{if eq .Settings.DefaultVisibility "unlisted"}}selected{{end}}>Unlisted</option>
|
|
|
|
<option value="private" {{if eq .Settings.DefaultVisibility "private"}}selected{{end}}>Private</option>
|
|
|
|
<option value="direct" {{if eq .Settings.DefaultVisibility "direct"}}selected{{end}}>Direct</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<div class="settings-form-field">
|
|
|
|
<input id="copy-scope" name="copy_scope" type="checkbox" value="true" {{if .Settings.CopyScope}}checked{{end}}>
|
|
|
|
<label for="copy-scope"> Copy scope when replying </label>
|
|
|
|
</div>
|
2019-12-29 11:32:24 +00:00
|
|
|
<div class="settings-form-field">
|
|
|
|
<input id="thread-tab" name="thread_in_new_tab" type="checkbox" value="true" {{if .Settings.ThreadInNewTab}}checked{{end}}>
|
|
|
|
<label for="thread-tab"> Open threads in new tab from timeline </label>
|
|
|
|
</div>
|
2020-04-25 09:35:18 +00:00
|
|
|
<div class="settings-form-field">
|
|
|
|
<input id="hide-attachments" name="hide_attachments" type="checkbox" value="true" {{if .Settings.HideAttachments}}checked{{end}}>
|
|
|
|
<label for="hide-attachments"> Hide attachments </label>
|
|
|
|
</div>
|
2019-12-31 11:00:21 +00:00
|
|
|
<div class="settings-form-field">
|
|
|
|
<input id="mask-nsfw" name="mask_nsfw" type="checkbox" value="true" {{if .Settings.MaskNSFW}}checked{{end}}>
|
2020-02-18 22:15:37 +00:00
|
|
|
<label for="mask-nsfw"> Mask NSFW attachments </label>
|
|
|
|
</div>
|
|
|
|
<div class="settings-form-field">
|
|
|
|
<input id="auto-refresh-notifications" name="auto_refresh_notifications" type="checkbox" value="true" {{if .Settings.AutoRefreshNotifications}}checked{{end}}>
|
|
|
|
<label for="auto-refresh-notifications"> Auto refresh notifications </label>
|
2019-12-31 11:00:21 +00:00
|
|
|
</div>
|
2020-01-08 18:16:06 +00:00
|
|
|
<div class="settings-form-field">
|
|
|
|
<input id="fluoride-mode" name="fluoride_mode" type="checkbox" value="true" {{if .Settings.FluorideMode}}checked{{end}}>
|
2020-04-05 09:29:29 +00:00
|
|
|
<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>
|
2020-01-08 18:16:06 +00:00
|
|
|
</div>
|
2020-09-02 17:50:48 +00:00
|
|
|
<div class="settings-form-field">
|
|
|
|
<input id="anti-dopamine-mode" name="anti_dopamine_mode" type="checkbox"
|
|
|
|
value="true" {{if .Settings.AntiDopamineMode}}checked{{end}}>
|
2020-09-03 06:26:32 +00:00
|
|
|
<label for="anti-dopamine-mode"> Enable <abbr title="Remove like/retweet/unread notification count and disable like/retweet/follow notifications">anti-dopamine mode</abbr> </label>
|
|
|
|
</div>
|
|
|
|
<div class="settings-form-field">
|
|
|
|
<input id="dark-mode" name="dark_mode" type="checkbox" value="true" {{if .Settings.DarkMode}}checked{{end}}>
|
|
|
|
<label for="dark-mode"> Use dark theme </label>
|
2020-09-02 17:50:48 +00:00
|
|
|
</div>
|
2019-12-27 08:06:43 +00:00
|
|
|
<button type="submit"> Save </button>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
{{template "footer.tmpl"}}
|
2020-01-14 16:57:16 +00:00
|
|
|
{{end}}
|