aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/navigation.tmpl1
-rw-r--r--templates/postform.tmpl2
-rw-r--r--templates/settings.tmpl22
3 files changed, 24 insertions, 1 deletions
diff --git a/templates/navigation.tmpl b/templates/navigation.tmpl
index b82c7f5..fe83476 100644
--- a/templates/navigation.tmpl
+++ b/templates/navigation.tmpl
@@ -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>
diff --git a/templates/postform.tmpl b/templates/postform.tmpl
index 0e104b4..a79f86b 100644
--- a/templates/postform.tmpl
+++ b/templates/postform.tmpl
@@ -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>
diff --git a/templates/settings.tmpl b/templates/settings.tmpl
new file mode 100644
index 0000000..e2fd778
--- /dev/null
+++ b/templates/settings.tmpl
@@ -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"}}