Search
{{if and .Query (not .QueryErr)}}
{{len .Results}} {{if eq (len .Results) 1}}result{{else}}results{{end}} for {{.Query}}
{{if .Kind}} in {{.Kind}}{{end}}
{{end}}
{{if .QueryErr}}
{{.QueryErr}}
{{else if .Query}}
{{if .Results}}
{{range .Results}}-
{{if .Number}}{{.Title}}{{else}}{{.Repo}}{{end}}
{{if .Number}}{{.Repo}}{{.Marker}}{{.Number}} opened by {{.Author}}{{else if .Title}}{{.Title}}{{end}}
{{/* the kind in the words the CLI prints, so a hit reads the same in
both places; it is why the meta no longer says "repository" */}}
{{.Kind}}
{{if .State}}{{.State}}{{end}}
{{end}}
{{/* The count line above already says nothing matched, so this one
carries the way out instead of repeating it. */}}
{{else}}
Try fewer words{{if .Kind}}, search everything,{{end}} or browse the repositories.
{{end}}
{{else}}
Repository names, descriptions and topics, and the title and body of every issue and merge request you can read. File contents are searched per repository, from a repository's Code tab.
{{end}}