From 26fed2421f96f2a3f15dea1b730a3f3f6634f01c Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 30 Jun 2016 08:01:39 +0000 Subject: view: default to flat/hybrid thread display This is friendlier for people on small screens and usually eliminates the need to scroll horizontally. --- lib/PublicInbox/View.pm | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'lib') diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index 44130b90..22d72500 100644 --- a/lib/PublicInbox/View.pm +++ b/lib/PublicInbox/View.pm @@ -154,8 +154,9 @@ sub index_entry { } else { $threaded = "$threaded"; } - $rv .= " [$threaded"; - $rv .= "|$flat]"; + $rv .= " / [$flat"; + $rv .= "|$threaded]"; + $rv .= " / thread overview"; } $rv .= $more ? "\n\n" : "\n"; @@ -498,7 +499,7 @@ sub thread_skel { my $mid = mid_clean($hdr->header_raw('Message-ID')); my $sres = $srch->get_thread($mid); my $nr = $sres->{total}; - my $expand = qq(expand ) . + my $expand = qq(expand ) . qq(/ mbox.gz ) . qq(/ Atom feed); @@ -869,7 +870,7 @@ sub emit_topics { } $subj = PublicInbox::Hval->new($subj)->as_html; - $cur->[1] .= "$subj\n"; + $cur->[1] .= "$subj\n"; $ts = fmt_ts($ts); my $attr = " $ts UTC"; -- cgit v1.2.3-24-ge0c7