From: Eric Wong Date: Wed, 6 Apr 2016 07:37:46 +0000 (+0000) Subject: view: shorter link for ghosts in per-message view X-Git-Tag: v1.0.0~619 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=57502a7c27dd971d99def287bcc02949ba854d93;p=public-inbox.git view: shorter link for ghosts in per-message view Shorten lines used for long Message-IDs in the inline thread view for per-message views for readability. --- diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index 5f9ecd10..c25c5d57 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);