From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-3.3 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00, RP_MATCHES_RCVD shortcircuit=no autolearn=unavailable version=3.3.2 X-Original-To: meta@public-inbox.org Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 139BD2044E for ; Wed, 6 Apr 2016 08:08:07 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH] view: shorter link for ghosts in per-message view Date: Wed, 6 Apr 2016 08:08:07 +0000 Message-Id: <20160406080807.20234-1-e@80x24.org> List-Id: Shorten lines used for long Message-IDs in the inline thread view for per-message views for readability. --- lib/PublicInbox/View.pm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index 5f9ecd1..c25c5d5 100644 --- a/lib/PublicInbox/View.pm +++ b/lib/PublicInbox/View.pm @@ -820,10 +820,12 @@ sub inline_dump { _inline_header($dst, $state, $upfx, $hdr, $level); } else { my $dot = $level == 0 ? '' : '` '; - my $pfx = (' ' x length(' 1970-01-01 13:37 ')). - indent_for($level) . $dot; + my $pfx = ' [not found] ' . indent_for($level) . $dot; $$dst .= $pfx; - $$dst .= ghost_parent("$upfx../", $node->messageid) . "\n"; + my $mid = PublicInbox::Hval->new_msgid($node->messageid); + my $href = $mid->as_href; + my $html = $mid->as_html; + $$dst .= qq{<$html>\n}; } inline_dump($dst, $state, $upfx, $node->child, $level+1); inline_dump($dst, $state, $upfx, $node->next, $level); -- EW