Skip to content

Commit

Permalink
web: also show 'more result' link if FilesSkipped > 0
Browse files Browse the repository at this point in the history
Change-Id: I758a048ac3294e4f7aed33139577a9983cab5e51
  • Loading branch information
hanwen committed Jan 25, 2018
1 parent 83d7b7d commit b35e45f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ var TemplateText = map[string]string{
<h5>
{{if .Stats.Crashes}}<br><b>{{.Stats.Crashes}} shards crashed</b><br>{{end}}
{{ $fileCount := len .FileMatches }}
Found {{.Stats.MatchCount}} results in {{.Stats.FileCount}} files{{if lt $fileCount .Stats.FileCount}},
Found {{.Stats.MatchCount}} results in {{.Stats.FileCount}} files{{if or (lt $fileCount .Stats.FileCount) (gt .Stats.FilesSkipped 0) }},
showing top {{ $fileCount }} files (<a href="search?q={{.Last.Query}}&num={{More .Last.Num}}">show more</a>).
{{else}}.{{end}}
</h5>
Expand Down

0 comments on commit b35e45f

Please sign in to comment.