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
@@ -23,7 +23,7 @@ module SearchHelper
Loading
@@ -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
Loading
Loading
- 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
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