From: Eric Wong Date: Thu, 30 Jun 2016 18:53:14 +0000 (+0000) Subject: view: move per-message anchor to top in conversation view X-Git-Tag: v1.0.0~341 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=645b5c06e789ddc9d97e76c1d4445ae9b7022599;p=public-inbox.git view: move per-message anchor to top in conversation view This fixes the '^' (up) link in the $INBOX/new.html endpoint for search-less displays. --- diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index 8487c2ad..11d8dd53 100644 --- a/lib/PublicInbox/View.pm +++ b/lib/PublicInbox/View.pm @@ -125,9 +125,10 @@ sub index_entry { my $root_anchor = $ctx->{root_anchor} || ''; my $irt = in_reply_to($hdr); - my $rv = ''.ascii_html($subj).''; - $rv = "$rv" if $root_anchor eq $id_m; - $rv .= "\n"; + my $rv = "* "; + $subj = ''.ascii_html($subj).''; + $subj = "$subj" if $root_anchor eq $id_m; + $rv .= $subj . "\n"; $rv .= _th_index_lite($mid_raw, $irt, $id, $ctx); my @tocc; foreach my $f (qw(To Cc)) { @@ -241,8 +242,7 @@ sub _th_index_lite { $rv .= $pad . $mapping->{$nn->messageid}->[1]; } } - $rv .= "_ "; - $rv .= "$s_s, $s_c; $ctx->{s_nr}\n"; + $rv .= $pad ."$s_s, $s_c; $ctx->{s_nr}\n"; } sub walk_thread {