diff options
author | Phil Hughes <me@iamphill.com> | 2016-04-15 17:00:53 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-04-26 09:03:04 +0100 |
commit | 262a3dd482680466b5bdc3fa1b94e06491e7a906 (patch) | |
tree | dbb1459653ba3827b915f4adbd6ab687544bbeed /app/helpers/search_helper.rb | |
parent | 3b5879e50c11baf3039512107c114c595baaf14e (diff) | |
download | gitlab-ce-262a3dd482680466b5bdc3fa1b94e06491e7a906.tar.gz |
Humanize scope text
Diffstat (limited to 'app/helpers/search_helper.rb')
-rw-r--r-- | app/helpers/search_helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/helpers/search_helper.rb b/app/helpers/search_helper.rb index 1b8053d1b1c..43169d1c9db 100644 --- a/app/helpers/search_helper.rb +++ b/app/helpers/search_helper.rb @@ -19,13 +19,13 @@ module SearchHelper end end - def search_entries_info(collection) + def search_entries_info(collection, scope, term) if collection.count > 0 from = collection.offset_value + 1 to = collection.offset_value + collection.length count = collection.count - "Showing #{from} - #{to} of #{count} results for \"#{@search_term}\"" + "Showing #{from} - #{to} of #{count} #{scope.humanize(capitalize: false)} for \"#{term}\"" end end |