diff options
author | Simon Ser <contact@emersion.fr> | 2020-01-28 20:04:33 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-01-28 20:04:33 +0100 |
commit | 4d684000363ba5154878b93b522265f8a95be76c (patch) | |
tree | 0c23eb6f7dd46273c17264ebadf7016eec5311ac /plugins/base/public | |
parent | bdf1a8b02b1b0188818305755c9d53cf0e8b5c70 (diff) | |
download | alps-4d684000363ba5154878b93b522265f8a95be76c.tar.gz alps-4d684000363ba5154878b93b522265f8a95be76c.zip |
plugins/base: add settings page
Add a settings page where the user can change the number of messages
displayed per page.
Diffstat (limited to 'plugins/base/public')
-rw-r--r-- | plugins/base/public/mailbox.html | 4 | ||||
-rw-r--r-- | plugins/base/public/settings.html | 18 |
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"}} |