]> Sergey Matveev's repositories - public-inbox.git/commitdiff
searchview: add "t" id to link to thread overview
authorEric Wong <e@80x24.org>
Fri, 24 Mar 2017 00:15:08 +0000 (00:15 +0000)
committerEric Wong <e@80x24.org>
Fri, 24 Mar 2017 00:34:05 +0000 (00:34 +0000)
At least for the thread view (&x=t); this will make it
easy to link to the overview.

lib/PublicInbox/SearchView.pm

index f1c4b6a052181e28c28127403a07d3732972151b..b867d002da71f79d718971e1d03ef4acd5463177 100644 (file)
@@ -145,7 +145,7 @@ sub search_nav_bot {
        my $o = $q->{o};
        my $end = $o + $nr;
        my $beg = $o + 1;
        my $o = $q->{o};
        my $end = $o + $nr;
        my $beg = $o + 1;
-       my $rv = '</pre><hr><pre>';
+       my $rv = '</pre><hr><pre id=t>';
        if ($beg <= $end) {
                $rv .= "Results $beg-$end of $total";
                $rv .= ' (estimated)' if $end != $total;
        if ($beg <= $end) {
                $rv .= "Results $beg-$end of $total";
                $rv .= ' (estimated)' if $end != $total;