summaryrefslogtreecommitdiff
path: root/app/helpers/search_helper.rb
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2017-09-07 18:03:20 +0200
committerKamil Trzcinski <ayufan@ayufan.eu>2017-09-07 18:03:20 +0200
commit12ddc28f844fe63446a16ac908b09ed7b13c71ef (patch)
tree149ef1a7e2b32e6fa8c4462394daf942b7452440 /app/helpers/search_helper.rb
parent62a5cc7134457d21bf3a68bfdb04e090cf0e6ecf (diff)
parentf2421b2b97d81ef7631f1baefb4ba4401c8a04dc (diff)
downloadgitlab-ce-12ddc28f844fe63446a16ac908b09ed7b13c71ef.tar.gz
Merge remote-tracking branch 'origin/master' into zj/gitlab-ce-zj-auto-devops-table
Diffstat (limited to 'app/helpers/search_helper.rb')
-rw-r--r--app/helpers/search_helper.rb14
1 files changed, 8 insertions, 6 deletions
diff --git a/app/helpers/search_helper.rb b/app/helpers/search_helper.rb
index 98e824a8c65..af6683a548b 100644
--- a/app/helpers/search_helper.rb
+++ b/app/helpers/search_helper.rb
@@ -134,19 +134,21 @@ module SearchHelper
end
def search_filter_input_options(type)
- opts = {
- id: "filtered-search-#{type}",
- placeholder: 'Search or filter results...',
- data: {
- 'username-params' => @users.to_json(only: [:id, :username])
+ opts =
+ {
+ id: "filtered-search-#{type}",
+ placeholder: 'Search or filter results...',
+ data: {
+ 'username-params' => @users.to_json(only: [:id, :username])
+ }
}
- }
if @project.present?
opts[:data]['project-id'] = @project.id
opts[:data]['base-endpoint'] = project_path(@project)
else
# Group context
+ opts[:data]['group-id'] = @group.id
opts[:data]['base-endpoint'] = group_canonical_path(@group)
end