Add settings page
[bloat] / templates / settings.tmpl
1 {{template "header.tmpl" .HeaderData}}
2 {{template "navigation.tmpl" .NavbarData}}
3 <div class="page-title"> Settings </div>
4
5 <form id="settings-form" action="/settings" method="POST">
6         <div class="settings-form-field">
7                 <label for="visibility"> Default scope </label>
8                 <select id="visibility" name="visibility">
9                         <option value="public" {{if eq .Settings.DefaultVisibility "public"}}selected{{end}}>Public</option>
10                         <option value="unlisted" {{if eq .Settings.DefaultVisibility "unlisted"}}selected{{end}}>Unlisted</option>
11                         <option value="private" {{if eq .Settings.DefaultVisibility "private"}}selected{{end}}>Private</option>
12                         <option value="direct" {{if eq .Settings.DefaultVisibility "direct"}}selected{{end}}>Direct</option>
13                 </select>
14         </div>
15         <div class="settings-form-field">
16                 <input id="copy-scope" name="copy_scope" type="checkbox" value="true" {{if .Settings.CopyScope}}checked{{end}}>
17                 <label for="copy-scope"> Copy scope when replying </label>
18         </div>
19         <button type="submit"> Save </button>
20 </form>
21
22 {{template "footer.tmpl"}}