X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=lib%2FPublicInbox%2FView.pm;h=5f99644f8abaaebf630624c587b1b835dcd52058;hb=803914775816f7de5485fa397bad64e1bd404381;hp=3d6348c71850e308b95ad61f275dbc9c37cc757b;hpb=7b8c110cb5485479b626852ccce6f2790d7ac4b6;p=public-inbox.git diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index 3d6348c7..5f99644f 100644 --- a/lib/PublicInbox/View.pm +++ b/lib/PublicInbox/View.pm @@ -61,10 +61,12 @@ sub msg_reply { push @$arg, '/path/to/YOUR_REPLY'; $arg = join(" \\\n ", '', @$arg); <You may reply publically to this message via -plain-text email using any one of the following methods: +
Reply instructions:
+
+You may reply publically to this message via plain-text email
+using any one of the following methods:
 
 * Save the following mbox file, import it into your mail client,
   and reply-to-all from there: index";
-	$skel .= "\n$nr+ messages in thread: (download: ";
-	$skel .= "mbox.gz";
+	$skel .= ", back to index\n\n";
+	$skel .= "Thread overview: ";
+	$skel .= $nr == 1 ? '(only message)' : "$nr+ messages";
+	$skel .= " (download: mbox.gz";
 	$skel .= " / follow: Atom feed)\n";
+	$skel .= "-- links below jump to the message on this page --\n";
 	$ctx->{-upfx} = '../../';
 	$ctx->{cur_level} = 0;
 	$ctx->{dst} = \$skel;
@@ -523,6 +527,7 @@ sub thread_skel {
 			qq(/ Atom feed);
 
 	my $parent = in_reply_to($hdr);
+	$$dst .= "\nThread overview: ";
 	if ($nr <= 1) {
 		if (defined $parent) {
 			$$dst .= "($expand)\n ";
@@ -905,11 +910,18 @@ sub dump_topics {
 
 		# $n isn't the total number of posts on the topic,
 		# just the number of posts in the current results window
-		$n = $n == 1 ? '' : " ($n+ messages)";
+		my $anchor;
+		if ($n == 1) {
+			$n = '';
+			$anchor = '#u'; # top of only message
+		} else {
+			$n = " ($n+ messages)";
+			$anchor = '#t'; # thread skeleton
+		}
 
 		my $mbox = qq(mbox.gz);
 		my $atom = qq(Atom);
-		my $s = "$top\n" .
+		my $s = "$top\n" .
 			" $ts UTC $n - $mbox / $atom\n";
 		for (my $i = 0; $i < scalar(@ex); $i += 2) {
 			my $level = $ex[$i];