~migadu/alps-devel

alps-patches: themes/alps: fix search pagination links v3 APPLIED

~koukas: 1
 themes/alps: fix search pagination links

 1 files changed, 2 insertions(+), 2 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~migadu/alps-devel/patches/43192/mbox | git am -3
Learn more about email & git

[PATCH alps-patches v3] themes/alps: fix search pagination links Export this patch

From: Konstantinos Koukas <contact@koukas.org>

---
Search pagination links do not contain the query.
The search stops once either button is clicked.

 themes/alps/messages-header.html | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/themes/alps/messages-header.html b/themes/alps/messages-header.html
index df70e06..195f0c5 100644
--- a/themes/alps/messages-header.html
+++ b/themes/alps/messages-header.html
@@ -42,10 +42,10 @@
  {{if or (ge .PrevPage 0) (ge .NextPage 0) }}
  <div class="actions-pagination">
    {{if ge .PrevPage 0}}
      <a href="?page={{.PrevPage}}" class="button-link">«</a>
      <a href="?page={{.PrevPage}}{{if .Query}}&query={{.Query}}{{end}}" class="button-link">«</a>
    {{end}}
    {{if ge .NextPage 0}}
      <a href="?page={{.NextPage}}" class="button-link">»</a>
      <a href="?page={{.NextPage}}{{if .Query}}&query={{.Query}}{{end}}" class="button-link">»</a>
    {{end}}
  </div>
  {{ end }}
-- 
2.38.5
Pushed with a minor edit to simplify by using "with" instead of "if".
Thanks!