* [PATCH] view: "next" link in thread view goes to next Subject line
@ 2015-08-21 1:49 Eric Wong
0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2015-08-21 1:49 UTC (permalink / raw)
To: meta
It's a bit disconcerting to jump to the authorship line.
---
lib/PublicInbox/View.pm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm
index 96f632a..4ed5344 100644
--- a/lib/PublicInbox/View.pm
+++ b/lib/PublicInbox/View.pm
@@ -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>";
}
--
EW
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2015-08-21 1:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-21 1:49 [PATCH] view: "next" link in thread view goes to next Subject line Eric Wong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).