]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/Feed.pm
No ext_urls
[public-inbox.git] / lib / PublicInbox / Feed.pm
index 56ca98861a096365bd78402340f91078eb3ad85d..de1e7dfeb584a5631acb8704d909b51ceedc2223 100644 (file)
@@ -49,15 +49,15 @@ sub generate_html_index {
 
 sub new_html_i {
        my ($ctx, $eml) = @_;
-       $ctx->zmore($ctx->html_top) if exists $ctx->{-html_tip};
+       print { $ctx->zfh } $ctx->html_top if exists $ctx->{-html_tip};
 
        if ($eml) {
                $ctx->{smsg}->populate($eml) if !$ctx->{ibx}->{over};
                return PublicInbox::View::eml_entry($ctx, $eml);
        }
        my $smsg = shift @{$ctx->{msgs}} or
-               $ctx->zmore(PublicInbox::View::pagination_footer(
-                                               $ctx, './new.html'));
+               print { $ctx->zfh } PublicInbox::View::pagination_footer(
+                                               $ctx, './new.html');
        $smsg;
 }
 
@@ -70,6 +70,7 @@ sub new_html {
        }
        $ctx->{-html_tip} = '<pre>';
        $ctx->{-upfx} = '';
+       $ctx->{-spfx} = '' if $ctx->{ibx}->{coderepo};
        $ctx->{-hr} = 1;
        PublicInbox::WwwStream::aresponse($ctx, \&new_html_i);
 }