aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/public
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/base/public')
-rw-r--r--plugins/base/public/mailbox.html4
-rw-r--r--plugins/base/public/settings.html18
2 files changed, 21 insertions, 1 deletions
diff --git a/plugins/base/public/mailbox.html b/plugins/base/public/mailbox.html
index d19c73d..9e2a0a2 100644
--- a/plugins/base/public/mailbox.html
+++ b/plugins/base/public/mailbox.html
@@ -3,7 +3,9 @@
<h1>koushin</h1>
<p>
- <a href="/logout">Logout</a> · <a href="/compose">Compose</a>
+ <a href="/logout">Logout</a>
+ · <a href="/compose">Compose</a>
+ · <a href="/settings">Settings</a>
</p>
<h2>{{.Mailbox.Name}}</h2>
diff --git a/plugins/base/public/settings.html b/plugins/base/public/settings.html
new file mode 100644
index 0000000..c0d715c
--- /dev/null
+++ b/plugins/base/public/settings.html
@@ -0,0 +1,18 @@
+{{template "head.html"}}
+
+<h1>koushin</h1>
+
+<p>
+ <a href="/mailbox/INBOX">Back</a>
+</p>
+
+<h2>Settings</h2>
+
+<form method="post" action="">
+ <label for="messages_per_page">Messages per page:</label>
+ <input type="number" name="messages_per_page" id="messages_per_page" required value="{{.Settings.MessagesPerPage}}">
+ <br><br>
+ <input type="submit" value="Save">
+</form>
+
+{{template "foot.html"}}