diff options
author | Eric Wong <e@80x24.org> | 2015-09-07 07:02:20 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2015-09-07 07:02:20 +0000 |
commit | 4ba45db831ccc8388630596596e49a52f5c2681b (patch) | |
tree | 0920c5adcbc65f3e87cc38b3a0bf256709df9563 /lib/PublicInbox | |
parent | 2a2973d2774cb104d0a5a06e2febad8db10b39eb (diff) | |
download | public-inbox-4ba45db831ccc8388630596596e49a52f5c2681b.tar.gz |
The expanded thread view is generally more useful. Having links to more links at the bottom seems to a waste of navigation time. However, keep the '#r' anchor in case people rely on it for links.
Diffstat (limited to 'lib/PublicInbox')
-rw-r--r-- | lib/PublicInbox/View.pm | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index 8969e175..5baca972 100644 --- a/lib/PublicInbox/View.pm +++ b/lib/PublicInbox/View.pm @@ -407,7 +407,6 @@ sub headers_to_html_header { my $header_obj = $mime->header_obj; my $mid = $header_obj->header('Message-ID'); $mid = PublicInbox::Hval->new_msgid($mid); - my $mid_href = $mid->as_href; foreach my $h (qw(From To Cc Subject Date)) { my $v = $mime->header($h); defined($v) && ($v ne '') or next; @@ -429,10 +428,10 @@ sub headers_to_html_header { } $rv .= 'Message-ID: <' . $mid->as_html . '> '; - my $raw_ref = $full_pfx ? 'raw' : '../raw'; - $rv .= "(<a\nhref=\"$raw_ref\">raw</a>)\n"; + my $upfx = $full_pfx ? '' : '../'; + $rv .= "(<a\nhref=\"${upfx}raw\">raw</a>)\n"; if ($srch) { - $rv .= "<a\nhref=\"#r\">References: [see below]</a>\n"; + $rv .= "<a\nhref=\"${upfx}t/\">References: [expand]</a>\n"; } else { $rv .= _parent_headers_nosrch($header_obj); } |