summaryrefslogtreecommitdiff
path: root/app/helpers
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2016-04-15 14:13:21 +0100
committerPhil Hughes <me@iamphill.com>2016-04-26 09:03:04 +0100
commitb3af3930c6c9a635cf21192c2d5a50dc51a9f5da (patch)
tree1964845d35362b3542a1b83a269d62e31194334f /app/helpers
parent6ff740ff9484691750f3eadf12125fd362efe61c (diff)
downloadgitlab-ce-b3af3930c6c9a635cf21192c2d5a50dc51a9f5da.tar.gz
Started updating search UI
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/search_helper.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/helpers/search_helper.rb b/app/helpers/search_helper.rb
index 8a97a74ad73..c8a7a686651 100644
--- a/app/helpers/search_helper.rb
+++ b/app/helpers/search_helper.rb
@@ -19,6 +19,16 @@ module SearchHelper
end
end
+ def search_entries_info(collection)
+ 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 All projects: \"#{@search_term}\""
+ end
+ end
+
private
# Autocomplete results for various settings pages