Skip to content
Snippets Groups Projects
Commit 06276bd3 authored by Phil Hughes's avatar Phil Hughes
Browse files

Correctly shows no results text

Correct search results count
parent 3137559d
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -23,7 +23,7 @@ module SearchHelper
if collection.count > 0
from = collection.offset_value + 1
to = collection.offset_value + collection.length
count = collection.count
count = collection.total_count
 
"Showing #{from} - #{to} of #{count} #{scope.humanize(capitalize: false)} for \"#{term}\""
end
Loading
Loading
- if @search_results.empty?
- if @objects.empty?
= render partial: "search/results/empty"
- else
.gray-content-block
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment