about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2015-08-22 11:41:24 +0000
committerEric Wong <e@80x24.org>2015-08-22 11:42:38 +0000
commit539f90b266ff9cf476234d87036157c008569835 (patch)
treef500ef6ce0aff62ca9fd550576d70ef9aaf0326f
parent6b51c6e762de67636c90b678b4bb28f970379b3c (diff)
downloadpublic-inbox-539f90b266ff9cf476234d87036157c008569835.tar.gz
To reduce clutter, we will not link to uncompressed versions.
Users should be able to download entire threads for offline
reading, enable this feature for them.
-rw-r--r--lib/PublicInbox/View.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm
index e3339066..fe37a9fc 100644
--- a/lib/PublicInbox/View.pm
+++ b/lib/PublicInbox/View.pm
@@ -168,6 +168,8 @@ sub emit_thread_html {
         my $next = "<a\nid=\"s$final_anchor\">";
         $next .= $final_anchor == 1 ? 'only message in' : 'end of';
         $next .= " thread</a>, back to <a\nhref=\"../\">index</a>\n";
+        $mid = PublicInbox::Hval->new_msgid($mid)->as_href;
+        $next .= "download: <a\nhref=\"$mid.mbox.gz\">mbox.gz</a>\n\n";
         $fh->write("<hr />" . PRE_WRAP . $next . $foot .
                    "</pre></body></html>");
         $fh->close;