From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.0 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 121941FE4E for ; Thu, 30 Jun 2016 18:53:15 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH] view: move per-message anchor to top in conversation view Date: Thu, 30 Jun 2016 18:53:14 +0000 Message-Id: <20160630185314.2333-1-e@80x24.org> List-Id: This fixes the '^' (up) link in the $INBOX/new.html endpoint for search-less displays. --- lib/PublicInbox/View.pm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index 8487c2a..11d8dd5 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 { -- EW