diff options
author | Phil Hughes <me@iamphill.com> | 2016-04-21 11:05:50 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-04-26 09:03:04 +0100 |
commit | 06276bd3550e589c520027c16f108b92a48fb44a (patch) | |
tree | 21af4ec096c8a2e3622c50c2b72b28353beadf6b /app/helpers/search_helper.rb | |
parent | 3137559dfd45ff0e7fa6653ed1ba3d75836e4c45 (diff) | |
download | gitlab-ce-06276bd3550e589c520027c16f108b92a48fb44a.tar.gz |
Correctly shows no results text
Correct search results count
Diffstat (limited to 'app/helpers/search_helper.rb')
-rw-r--r-- | app/helpers/search_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/search_helper.rb b/app/helpers/search_helper.rb index 43169d1c9db..7f585cd5dd9 100644 --- a/app/helpers/search_helper.rb +++ b/app/helpers/search_helper.rb @@ -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 |