diff options
author | Eric Wong <e@80x24.org> | 2021-08-30 23:44:53 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-08-31 11:25:15 +0000 |
commit | 625ea784692b43809bb7ed1a45c5855e4f8a046c (patch) | |
tree | 98498c539b3e3e4b3eb348caa93a8fe07d4457ce /lib | |
parent | 5af9b290eac2ef8d1a7382561ff35e2cd8e28d29 (diff) | |
download | public-inbox-625ea784692b43809bb7ed1a45c5855e4f8a046c.tar.gz |
"extindex" and "public-inbox" are project-specific terms which are probably unsuitable for folks who are seeing this for the first time. Use "public inbox" when referring to actual public inboxes, since "public-inbox" is merely the name for this particular implementation and others have adopted the same concept (IMHO the concept is more important than any particular implementation).
Diffstat (limited to 'lib')
-rw-r--r-- | lib/PublicInbox/WwwText.pm | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/lib/PublicInbox/WwwText.pm b/lib/PublicInbox/WwwText.pm index 858fc2f7..fabe39f6 100644 --- a/lib/PublicInbox/WwwText.pm +++ b/lib/PublicInbox/WwwText.pm @@ -246,9 +246,13 @@ sub coderepos_raw ($$) { my $cfg = $ctx->{www}->{pi_cfg}; my @ret; for my $cr_name (@$cr) { - $ret[0] //= <<EOF; -code repositories for project(s) associated with this inbox: + $ret[0] //= do { + my $thing = $ctx->{ibx}->can('cloneurl') ? + 'public inbox' : 'external index'; + <<EOF; +Code repositories for project(s) associated with this $thing EOF + }; my $urls = $cfg->get_all("coderepo.$cr_name.cgiturl"); if ($urls) { for (@$urls) { @@ -276,7 +280,8 @@ sub _mirror_help ($$) { $top_url =~ s!/[^/]+\z!/!; $$txt .= "public-inbox mirroring instructions\n\n"; if ($ibx->can('cloneurl')) { # PublicInbox::Inbox - $$txt .= "This inbox may be cloned and mirrored by anyone:\n"; + $$txt .= + "This public inbox may be cloned and mirrored by anyone:\n"; my @urls; my $max = $ibx->max_git_epoch; # TODO: some of these URLs may be too long and we may need to @@ -322,8 +327,8 @@ EOF } } else { # PublicInbox::ExtSearch $$txt .= <<EOM; -This is an extindex which is an amalgamation of several public-inboxes. -Each public-inbox needs to be mirrored individually. +This is an external index which is an amalgamation of several public inboxes. +Each public inbox needs to be mirrored individually. EOM my $v = $ctx->{www}->{pi_cfg}->{lc('publicInbox.wwwListing')}; if (($v // '') =~ /\A(?:all|match=domain)\z/) { |