]> Sergey Matveev's repositories - public-inbox.git/commitdiff
view: add "this message" link above dfblob: textarea
authorEric Wong <e@80x24.org>
Fri, 26 Aug 2022 03:20:20 +0000 (03:20 +0000)
committerEric Wong <e@80x24.org>
Fri, 26 Aug 2022 06:09:53 +0000 (06:09 +0000)
When jumping to #related from /T/ or /t/ views, it could be
disconcerting to not have the current message as context.
So add a "this message" link back up to #t as we have always
done with the reply instructions.

lib/PublicInbox/View.pm

index 6bfaf1bbefa2247f3f9dc05e3a4d981a14145a45..158feb6ab3d5a6a933e04c41bf44dd1dd9a82aaf 100644 (file)
@@ -845,7 +845,8 @@ sub html_footer {
                $related = <<EOM;
 <form id=related
 action=$upfx
-><pre>find likely ancestor, descendant, or conflicting patches:
+><pre>find likely ancestor, descendant, or conflicting patches for <a
+href=#t>this message</a>:
 <textarea name=q cols=${\COLS} rows=$rows>$q</textarea>
 <input type=submit value=search
 />\t(<a href=${upfx}_/text/help/>help</a>)</pre></form>