mirror of
https://gitea.phreedom.club/localhost_frssoft/bloat.git
synced 2025-05-02 10:04:22 +00:00
Add settings page
This commit is contained in:
parent
14bb18fbc7
commit
b9d7eb05be
11 changed files with 165 additions and 16 deletions
|
@ -20,6 +20,7 @@
|
|||
<a class="nav-link" href="/about">about</a>
|
||||
</div>
|
||||
<div>
|
||||
<a class="nav-link" href="/settings">settings</a>
|
||||
<a class="nav-link" href="/signout">sign out</a>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
</span>
|
||||
{{end}}
|
||||
<span class="post-form-field">
|
||||
<label for="post-visilibity"> Visibility </label>
|
||||
<label for="post-visilibity"> Scope </label>
|
||||
<select id="post-visilibity" name="visibility">
|
||||
<option value="public" {{if eq .DefaultVisibility "public"}}selected{{end}}>Public</option>
|
||||
<option value="unlisted" {{if eq .DefaultVisibility "unlisted"}}selected{{end}}>Unlisted</option>
|
||||
|
|
22
templates/settings.tmpl
Normal file
22
templates/settings.tmpl
Normal file
|
@ -0,0 +1,22 @@
|
|||
{{template "header.tmpl" .HeaderData}}
|
||||
{{template "navigation.tmpl" .NavbarData}}
|
||||
<div class="page-title"> Settings </div>
|
||||
|
||||
<form id="settings-form" action="/settings" method="POST">
|
||||
<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>
|
||||
<button type="submit"> Save </button>
|
||||
</form>
|
||||
|
||||
{{template "footer.tmpl"}}
|
Loading…
Add table
Add a link
Reference in a new issue