From 553f7053715ce9c7a5a3b8d7d9f4fb705b744559 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 4 Oct 2014 02:51:29 +0000 Subject: view: make the thread index less claustrophobic At the cost of some vertical whitespace. More bikeshedding... --- lib/PublicInbox/View.pm | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'lib') diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index 3860d6e4..d64aca40 100644 --- a/lib/PublicInbox/View.pm +++ b/lib/PublicInbox/View.pm @@ -68,7 +68,7 @@ sub index_entry { my $pfx = (' ' x $level); my $ts = $mime->header('X-PI-Date'); - my $fmt = '%H:%M'; + my $fmt = '%H:%M UTC'; if ($now > ($ts + (365 * 24 * 60 * 60))) { # doesn't have to be exactly 1 year $fmt = '%Y/%m/%d'; @@ -79,11 +79,15 @@ sub index_entry { $rv .= "$pfx" . "" . - "$subj $from - $ts\n" . + "$subj\n" . "$pfxnext"; - $rv .= " prev" if $prev >= 0; - $rv .= "\n"; + if ($prev >= 0) { + $rv .= "/prev"; + } else { + $rv .= ' '; + } + $rv .= " by $from @ $ts\n\n"; my $irp = $header_obj->header_raw('In-Reply-To'); my ($anchor_idx, $anchor); @@ -129,7 +133,7 @@ sub index_entry { ++$part_nr; }); - $rv .= "$pfx$more "; + $rv .= "\n$pfx$more "; my $txt = "m/$href.txt"; $rv .= "raw "; $rv .= html_footer($mime, 0); -- cgit v1.2.3-24-ge0c7