lib/PublicInbox/View.pm | 23 +++++++++-------------- diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index 7603c514cf999c9b01095d697a1698ebbe3dcc58..ad90eb3d09e593e3cbe73b7cee6b9b6e652408c4 100644 --- a/lib/PublicInbox/View.pm +++ b/lib/PublicInbox/View.pm @@ -15,7 +15,6 @@ use PublicInbox::Hval; use PublicInbox::MID qw/mid_clean id_compress mid2path/; use Digest::SHA qw/sha1_hex/; my $SALT = rand; -my $MBOX_TITLE = 'title="download thread as gzipped mbox"'; require POSIX; # TODO: make these constants tunable @@ -205,7 +204,7 @@ my $next = ""; $next .= $final_anchor == 1 ? 'only message in' : 'end of'; $next .= " thread, back to index"; $next .= "\ndownload thread: "; - $next .= "mbox.gz"; + $next .= "mbox.gz"; $next .= " / follow: Atom feed"; $cb->write('
' . $next . "\n\n".
 			$foot .  '
'); @@ -879,19 +878,15 @@ $dst .= "$nl$pfx$dot$subj\n"; my $attr; $ts = fmt_ts($ts); - if ($n == 1) { - $attr = "@ $ts UTC"; - $n = ""; - } else { - # $n isn't the total number of posts on the topic, - # just the number of posts in the current results - # window, so leave it unlabeled - $attr = "@ $ts UTC"; - $n = " ($n)"; - } + $attr = " $ts UTC"; + + # $n isn't the total number of posts on the topic, + # just the number of posts in the current results + # window, so leave it unlabeled + $n = $n == 1 ? '' : " ($n+ messages)"; + if ($level == 0 || $attr ne $prev_attr) { - my $mbox = qq(mbox.gz); + my $mbox = qq(mbox.gz); my $atom = qq(Atom); $pfx .= INDENT if $level > 0; $dst .= $pfx . $attr . $n . " - $mbox / $atom\n";