X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=lib%2FPublicInbox%2FWwwStream.pm;h=aee78170c713df91ea1186264080fb32a7e2dbfa;hb=8d2513221e73649aed85ce8c3f37f7025ec1fec9;hp=c960edc52fdc545503e9d73ec8444f04c812e62e;hpb=5b96edcb1e0d825244d5a12470e0f32526262611;p=public-inbox.git
diff --git a/lib/PublicInbox/WwwStream.pm b/lib/PublicInbox/WwwStream.pm
index c960edc5..aee78170 100644
--- a/lib/PublicInbox/WwwStream.pm
+++ b/lib/PublicInbox/WwwStream.pm
@@ -32,7 +32,7 @@ sub init {
sub async_eml { # for async_blob_cb
my ($ctx, $eml) = @_;
- $ctx->{http_out}->write($ctx->translate($ctx->{cb}->($ctx, $eml)));
+ $ctx->write($ctx->{cb}->($ctx, $eml));
}
sub html_top ($) {
@@ -49,6 +49,8 @@ sub html_top ($) {
# we had some kind of query, link to /$INBOX/?t=YYYYMMDDhhmmss
} elsif ($ctx->{qp}->{t}) {
$top = qq($top);
+ } elsif (length($upfx)) {
+ $top = qq($top);
}
my $code = $ibx->{coderepo} ? qq( / code) : '';
# id=mirror must exist for legacy bookmarks
@@ -87,7 +89,7 @@ sub coderepos ($) {
my @ret;
for my $cr_name (@$cr) {
$ret[0] //= <code repositories for project(s) associated with this inbox:
+Code repositories for project(s) associated with this inbox:
EOF
my $urls = $cfg->get_all("coderepo.$cr_name.cgiturl");
if ($urls) {
@@ -107,10 +109,42 @@ EOF
sub _html_end {
my ($ctx) = @_;
- my @cr = coderepos($ctx);
- scalar(@cr) ?
- '
'.join("\n\n", @cr).'