From: Eric Wong <e@80x24.org>
To: meta@public-inbox.org
Cc: Philip Oakley <philipoakley@iee.org>
Subject: [PATCH 2/2] searchview: link to internal help text
Date: Thu, 18 Aug 2016 09:51:50 +0000 [thread overview]
Message-ID: <20160818095150.17118-3-e@80x24.org> (raw)
In-Reply-To: <20160818095150.17118-1-e@80x24.org>
The internal help text links to the Xapian query parser
documentation anyways, but also provides information
on which prefixes exist.
---
lib/PublicInbox/SearchView.pm | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/lib/PublicInbox/SearchView.pm b/lib/PublicInbox/SearchView.pm
index 3623a78..4f0811a 100644
--- a/lib/PublicInbox/SearchView.pm
+++ b/lib/PublicInbox/SearchView.pm
@@ -85,12 +85,11 @@ sub mset_summary {
sub err_txt {
my ($ctx, $err) = @_;
- my $u = '//xapian.org/docs/queryparser.html';
- $u = PublicInbox::Hval::prurl($ctx->{env}, $u);
+ my $u = $ctx->{-inbox}->base_url($ctx->{env}) . '_/text/help/';
$err =~ s/^\s*Exception:\s*//; # bad word to show users :P
$err = ascii_html($err);
"\nBad query: <b>$err</b>\n" .
- qq{See <a\nhref="$u">$u</a> for Xapian query syntax};
+ qq{See <a\nhref="$u">$u</a> for help on using search};
}
sub search_nav_top {
--
EW
next prev parent reply other threads:[~2016-08-18 9:51 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-18 9:51 [PATCH 0/2] begin online help for each public-inbox Eric Wong
2016-08-18 9:51 ` [PATCH 1/2] www: implement generic help text Eric Wong
2016-08-18 9:51 ` Eric Wong [this message]
2016-08-18 19:29 ` [PATCH 0/2] begin online help for each public-inbox Philip Oakley
2016-08-18 19:33 ` Eric Wong
2016-08-26 19:30 ` Favicon for (each) public-inbox Philip Oakley
2016-08-28 9:46 ` Eric Wong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://public-inbox.org/README
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160818095150.17118-3-e@80x24.org \
--to=e@80x24.org \
--cc=meta@public-inbox.org \
--cc=philipoakley@iee.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).