use warnings;
use PublicInbox::Hval qw(ascii_html);
use URI;
-use constant PI_URL => 'https://public-inbox.org/README.html';
+use constant PI_URL => 'https://public-inbox.org/';
sub new {
my ($class, $ctx, $cb) = @_;
}
# XXX gross, for SearchView.pm
my $extra = $ctx->{-extra_form_html} || '';
- $top = qq{<form\naction="$upfx"><pre>$top} .
+ my $action = $upfx eq '' ? './' : $upfx;
+ $top = qq{<form\naction="$action"><pre>$top} .
qq{ <input\nname=q\ntype=text$q_val/>} .
$extra .
qq{<input\ntype=submit\nvalue=search />} .
'<pre>'.join("\n",
'- ' . $desc,
$urls,
- 'served with software from public-inbox: '
- ."<a\nhref=\"$url\">$url</a>",
+ 'Archived served using code from public-inbox:',
+ "\tgit clone <a\nhref="$url">$url</a> public-inbox",
).'</pre></body></html>';
}