about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-06-30 08:39:35 +0000
committerEric Wong <e@80x24.org>2016-06-30 08:57:24 +0000
commit8e52aa5d5a9186a1c90bc77e444d77d6130c8779 (patch)
tree101ddfe945a9d7a3df07b350e5d36403ffb28d3e /lib
parent26fed2421f96f2a3f15dea1b730a3f3f6634f01c (diff)
downloadpublic-inbox-8e52aa5d5a9186a1c90bc77e444d77d6130c8779.tar.gz
This should give readers a better idea of what to expect.
Diffstat (limited to 'lib')
-rw-r--r--lib/PublicInbox/View.pm6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm
index 22d72500..fac53eb9 100644
--- a/lib/PublicInbox/View.pm
+++ b/lib/PublicInbox/View.pm
@@ -156,7 +156,7 @@ sub index_entry {
                 }
                 $rv .= " / [<a\nhref=\"${mhref}T/#u\">$flat</a>";
                 $rv .= "|<a\nhref=\"${mhref}t/#u\">$threaded</a>]";
-                $rv .= " / <a\nhref=#r$id>thread overview</a>";
+                $rv .= " / <a\nhref=#r$id>$ctx->{s_nr}</a>";
         }
 
         $rv .= $more ? "\n\n" : "\n";
@@ -226,7 +226,8 @@ sub _th_index_lite {
                         $rv .= $pad . $mapping->{$nn->messageid}->[1];
                 }
         }
-        $rv .= "<a\nhref=#e$id\nid=m$id>_</a> <a\nhref=#r$id>$s_s, $s_c</a>\n";
+        $rv .= "<a\nhref=#e$id\nid=m$id>_</a> ";
+        $rv .= "<a\nhref=#r$id>$s_s, $s_c; $ctx->{s_nr}</a>\n";
 }
 
 sub walk_thread {
@@ -319,6 +320,7 @@ sub thread_html {
         $ctx->{root_anchor} = anchor_for($mid);
         $ctx->{seen} = {};
         $ctx->{mapping} = {};
+        $ctx->{s_nr} = "$nr+ messages in thread";
 
         my $th = thread_results($msgs);
         walk_thread($th, $ctx, *pre_thread);