internal/frontend: change "other modules" search text for stdlib
Change the text for "other modules" to reflect that stdlib packages
are grouped by top-level directory and not module.
Trust: Jonathan Amsterdam
Run-TryBot: Jonathan Amsterdam
@@ -95,9 +95,9 @@ func fetchSearchPage(ctx context.Context, db *postgres.DB, query string, pagePar
chipText = "command"
name = effectiveName(r.PackagePath, r.Name)
}
- moduleDesc := "module " + r.ModulePath
+ moduleDesc := "Other packages in module " + r.ModulePath
if r.ModulePath == stdlib.ModulePath {
- moduleDesc = "the standard library"
+ moduleDesc = "Related packages in the standard library"
chipText = "standard library"
}
sr := &SearchResult{
@@ -110,7 +110,7 @@ func fetchSearchPage(ctx context.Context, db *postgres.DB, query string, pagePar
Licenses: r.Licenses,
CommitTime: elapsedTime(r.CommitTime),
NumImportedBy: int(r.NumImportedBy),
- SameModule: packagePaths("Other packages in "+moduleDesc+":", r.SameModule),
+ SameModule: packagePaths(moduleDesc+":", r.SameModule),
// Say "other" instead of "lower" because at some point we may
// prefer to show a tagged, lower major version over an untagged
// higher major version.
