From 1e0b530449910eb35561e068de7e4084175b78e6 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 30 Jun 2016 02:35:15 +0000 Subject: view: show thread context in the thread-aware flat view This lets user have a small window of the context of the current message relative to other threads. --- lib/PublicInbox/Feed.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/PublicInbox/Feed.pm') diff --git a/lib/PublicInbox/Feed.pm b/lib/PublicInbox/Feed.pm index 36802fa1..73986e83 100644 --- a/lib/PublicInbox/Feed.pm +++ b/lib/PublicInbox/Feed.pm @@ -138,6 +138,7 @@ sub emit_html_index { my $fh = $res->([200,['Content-Type'=>'text/html; charset=UTF-8']]); my $max = $ctx->{max} || MAX_PER_PAGE; + $ctx->{-upfx} = ''; my ($footer, $param, $last); my $state = { ctx => $ctx, seen => {}, anchor_idx => 0, fh => $fh }; @@ -174,7 +175,7 @@ sub emit_index_nosrch { $state->{first} ||= $commit; my $mime = do_cat_mail($ibx, $path) or return 0; - $fh->write(PublicInbox::View::index_entry($mime, $state)); + $fh->write(PublicInbox::View::index_entry($mime, $state, 1)); 1; }); $last; -- cgit v1.2.3-24-ge0c7