diff options
author | Eric Wong <e@80x24.org> | 2015-12-02 02:47:00 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2015-12-02 02:47:00 +0000 |
commit | 5abb90d6872d320475d8b4d7181c36e9f1906719 (patch) | |
tree | 8600054cc34c2ee65ef825c4afed6c30a4afa927 /lib | |
parent | 494131d2c857995c773c6b879abf0c5cad3f5a50 (diff) | |
download | public-inbox-5abb90d6872d320475d8b4d7181c36e9f1906719.tar.gz |
Just because a message is currently alone does not mean the links won't be valid in the future when more messages show up.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/PublicInbox/View.pm | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index a3a955b2..d8fb1cb5 100644 --- a/lib/PublicInbox/View.pm +++ b/lib/PublicInbox/View.pm @@ -463,15 +463,17 @@ sub thread_inline { my $mid = mid_clean($cur->header('Message-ID')); my $res = $srch->get_thread($mid); my $nr = $res->{total}; + my $upfx = $full_pfx ? '' : '../'; + my $expand = "(<a\nhref=\"${upfx}t/#u\">expand</a> " . + "/ <a\nhref=\"${upfx}t.mbox.gz\">mbox.gz</a>)"; if ($nr <= 1) { - $$dst .= "\n[no followups, yet]\n"; + $$dst .= "\n[no followups, yet] $expand\n"; return (undef, in_reply_to($cur)); } - my $upfx = $full_pfx ? '' : '../'; - $$dst .= "\n\n~$nr messages in thread: ". - "(<a\nhref=\"${upfx}t/#u\">expand</a>)\n"; + $$dst .= "\n\n~$nr messages in thread: $expand\n"; + my $subj = $srch->subject_path($cur->header('Subject')); my $parent = in_reply_to($cur); my $state = { |