]> Sergey Matveev's repositories - public-inbox.git/commitdiff
wwwtext: show thread endpoint w/ indexlevel=basic
authorEric Wong <e@yhbt.net>
Sat, 21 Mar 2020 02:03:52 +0000 (02:03 +0000)
committerEric Wong <e@yhbt.net>
Wed, 25 Mar 2020 01:48:35 +0000 (01:48 +0000)
And show contact info when there's no indexing, at all.
Installations where Xapian is too expensive can still support
threading since it only depends on SQLite, so we need to inform
users of what's available.

lib/PublicInbox/WwwText.pm

index f6d831f62d1d2a7d1503ee00496fadb993631c58..cbe82b730f765a585e3fbf019a98f5183afa3405 100644 (file)
@@ -256,6 +256,11 @@ EOF
 
        $QP_URL
 
+EOF
+       } # $srch
+       my $over = $ibx->over;
+       if ($over) {
+               $$txt .= <<EOF;
 message threading
 -----------------
 
@@ -301,6 +306,10 @@ message threading
 
        $WIKI_URL/Mbox
 
+EOF
+       } # $over
+
+       $$txt .= <<EOF;
 contact
 -------
 
@@ -309,7 +318,6 @@ contact
 
 EOF
        # TODO: support admin contact info in ~/.public-inbox/config
-       }
        1;
 }