Correctly shows no results text
Correct search results count
This commit is contained in:
parent
3137559dfd
commit
06276bd355
|
@ -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
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
- if @search_results.empty?
|
||||
- if @objects.empty?
|
||||
= render partial: "search/results/empty"
|
||||
- else
|
||||
.gray-content-block
|
||||
|
|
Loading…
Reference in New Issue