From f3afddbe621614f684c2e855a24060fca8dce803 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 15 Jun 2019 20:23:42 +0000 Subject: searchview: add link at bottom to reverse results I could not find a place to put the link the top without making navigation too cluttered. Putting it at the bottom of the page seems reasonable... --- lib/PublicInbox/SearchView.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/PublicInbox/SearchView.pm b/lib/PublicInbox/SearchView.pm index f0d803ea..6f07279b 100644 --- a/lib/PublicInbox/SearchView.pm +++ b/lib/PublicInbox/SearchView.pm @@ -232,7 +232,9 @@ sub search_nav_bot { $rv .= qq{ next} if $next; $rv .= $join if $join; $rv .= qq{prev} if $prev; - $rv .= ''; + + my $rev = $q->qs_html(o => $o < 0 ? 0 : -1); + $rv .= qq{ | reverse results}; } sub sort_relevance { -- cgit v1.2.3-24-ge0c7