]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/View.pm
www: add footers to HTML index and message views
[public-inbox.git] / lib / PublicInbox / View.pm
index 674d7b7cdfb73c77172c59485dea33c60908d3f7..5870c9d1ad3099ca857f0ab2d6966a2f16cf95d9 100644 (file)
@@ -20,12 +20,12 @@ my $enc_mime = find_encoding('MIME-Header');
 
 # public functions:
 sub msg_html {
-       my ($class, $mime, $full_pfx) = @_;
-
+       my ($class, $mime, $full_pfx, $footer) = @_;
+       $footer = '' unless defined $footer;
        headers_to_html_header($mime, $full_pfx) .
                multipart_text_as_html($mime, $full_pfx) .
                '</pre><hr /><pre>' .
-               html_footer($mime) .
+               html_footer($mime) . $footer .
                '</pre></body></html>';
 }