]> Sergey Matveev's repositories - public-inbox.git/commitdiff
view: "next" link in thread view goes to next Subject line
authorEric Wong <e@80x24.org>
Fri, 21 Aug 2015 01:29:03 +0000 (01:29 +0000)
committerEric Wong <e@80x24.org>
Fri, 21 Aug 2015 01:29:31 +0000 (01:29 +0000)
It's a bit disconcerting to jump to the authorship line.

lib/PublicInbox/View.pm

index 96f632a692d158a71a6415de7c898be248bff362..4ed5344e585084c9c94dc3478c0867c01e6750d9 100644 (file)
@@ -100,10 +100,10 @@ sub index_entry {
        if ($level) {
                $rv .= '<td><pre>' . ('  ' x $level) . '</pre></td>';
        }
-       $rv .= '<td>' . PRE_WRAP;
+       $rv .= "<td\nid=s$midx>" . PRE_WRAP;
        $rv .= "<b\nid=\"$id\">$subj</b>\n";
        $rv .= "- by $from @ $ts UTC - ";
-       $rv .= "<a\nid=\"s$midx\"\nhref=\"#s$next\">next</a>";
+       $rv .= "<a\nhref=\"#s$next\">next</a>";
        if ($prev >= 0) {
                $rv .= "/<a\nhref=\"#s$prev\">prev</a>";
        }