X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=lib%2FPublicInbox%2FWwwText.pm;h=d3413ad72862d557511952a7867484cc3cfb5a79;hb=c2d12f79e78eb4ea909cac6106880c0f41e8c5fd;hp=b8beb97c6d5983e9c319a2f7733a4e232fc7f884;hpb=adecbd43d2eed046fe6e88a459d03567461fd84b;p=public-inbox.git
diff --git a/lib/PublicInbox/WwwText.pm b/lib/PublicInbox/WwwText.pm
index b8beb97c..d3413ad7 100644
--- a/lib/PublicInbox/WwwText.pm
+++ b/lib/PublicInbox/WwwText.pm
@@ -1,7 +1,7 @@
-# Copyright (C) 2016 all contributors
+# Copyright (C) 2016-2018 all contributors
# License: AGPL-3.0+
-#
-# serves the /$INBOX/_/* endpoints from :text/* of the git tree
+
+# used for displaying help texts and other non-mail content
package PublicInbox::WwwText;
use strict;
use warnings;
@@ -88,9 +88,44 @@ sub _srch_prefix ($$) {
1;
}
+sub _colors_help ($$) {
+ my ($ctx, $txt) = @_;
+ my $ibx = $ctx->{-inbox};
+ my $base_url = $ibx->base_url($ctx->{env});
+ $$txt .= "color customization for $base_url\n";
+ $$txt .= <{-inbox};
@@ -134,7 +169,7 @@ search
in other search engines.
We also support search prefixes to limit the scope of the
- search to certain fields using prefixes.
+ search to certain fields.
Prefixes supported in this installation include:
@@ -142,6 +177,10 @@ EOF
_srch_prefix($srch, $txt);
$$txt .= <