diff options
author | Eric Wong <e@80x24.org> | 2015-08-22 11:41:21 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2015-08-22 11:42:35 +0000 |
commit | ae3deb179b7faafd0ece3c24d84c82a1d38bb3c1 (patch) | |
tree | 21739ab1834e6b7030af7c910db9e5f0c07f3f5d /lib | |
parent | c84813e43031f0683cbbb53ca033926cd4848737 (diff) | |
download | public-inbox-ae3deb179b7faafd0ece3c24d84c82a1d38bb3c1.tar.gz |
In case there's huge threads, readers should know about them even though we currently lack the navigation to display them.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/PublicInbox/View.pm | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index 922e8e93..e3339066 100644 --- a/lib/PublicInbox/View.pm +++ b/lib/PublicInbox/View.pm @@ -437,7 +437,12 @@ sub html_footer { "threadlink</a>$idx"; my $res = $srch->get_followups($mid); if (my $c = $res->{total}) { - $c = $c == 1 ? '1 followup' : "$c followups"; + my $nr = scalar @{$res->{msgs}}; + if ($nr < $c) { + $c = "$nr of $c followups"; + } else { + $c = $c == 1 ? '1 followup' : "$c followups"; + } $idx .= "\n$c:\n"; $res->{srch} = $srch; thread_followups(\$idx, $mime, $res); |