Commit 06276bd3 authored by Phil Hughes's avatar Phil Hughes

Correctly shows no results text

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