diff options
author | Simon Ser <contact@emersion.fr> | 2019-12-17 16:23:51 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2019-12-17 16:23:51 +0100 |
commit | 80da410c3bb1c0d8d53c02867afc0cddd2f185bd (patch) | |
tree | 1dac77ab38b6818de3acd6941a4514d2812ebe23 /plugins/base/public | |
parent | 6bccdd62cec3ce20f50da12c8b4a23678746aea5 (diff) | |
download | alps-80da410c3bb1c0d8d53c02867afc0cddd2f185bd.tar.gz alps-80da410c3bb1c0d8d53c02867afc0cddd2f185bd.zip |
Implement paging for search
Diffstat (limited to 'plugins/base/public')
-rw-r--r-- | plugins/base/public/mailbox.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/base/public/mailbox.html b/plugins/base/public/mailbox.html index 6deaa38..d480440 100644 --- a/plugins/base/public/mailbox.html +++ b/plugins/base/public/mailbox.html @@ -8,7 +8,7 @@ <h2>{{.Mailbox.Name}}</h2> -<form method="post" action=""> +<form method="get" action=""> <input type="search" name="query" value="{{.Query}}"> <input type="submit" value="Search"> </form> @@ -36,11 +36,11 @@ <p> {{if ge .PrevPage 0}} - <a href="?page={{.PrevPage}}">Prev</a> + <a href="?page={{.PrevPage}}&query={{.Query}}">Prev</a> {{end}} {{if and (ge .PrevPage 0) (ge .NextPage 0)}}ยท{{end}} {{if ge .NextPage 0}} - <a href="?page={{.NextPage}}">Next</a> + <a href="?page={{.NextPage}}&query={{.Query}}">Next</a> {{end}} </p> {{else}} |