summaryrefslogtreecommitdiff
path: root/app/views/shared/issuable
diff options
context:
space:
mode:
authorToon Claes <toon@gitlab.com>2017-06-15 16:01:12 +0200
committerToon Claes <toon@gitlab.com>2017-06-20 14:19:45 +0200
commita8d4bf9724ce6dce69240d4953c7d38b7f05a7dd (patch)
treeebd501dede12ddc2faa40e0a9209c8d603de6250 /app/views/shared/issuable
parentfd50d9ab8ec977183240b28d749cf2eb25014f41 (diff)
downloadgitlab-ce-a8d4bf9724ce6dce69240d4953c7d38b7f05a7dd.tar.gz
Use helper method to set filtered search input attributes
The list of attributes for the filtered search input was getting long, so use a helper method to fill that hash. Also, for multiple issue assignees, a helper is more convenient because it would allow EE to override the behavior if MIA is supported.
Diffstat (limited to 'app/views/shared/issuable')
-rw-r--r--app/views/shared/issuable/_search_bar.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/shared/issuable/_search_bar.html.haml b/app/views/shared/issuable/_search_bar.html.haml
index d3d290692a2..ae890567225 100644
--- a/app/views/shared/issuable/_search_bar.html.haml
+++ b/app/views/shared/issuable/_search_bar.html.haml
@@ -23,7 +23,7 @@
.scroll-container
%ul.tokens-container.list-unstyled
%li.input-token
- %input.form-control.filtered-search{ id: "filtered-search-#{type.to_s}", placeholder: 'Search or filter results...', data: { 'project-id' => @project.id, 'username-params' => @users.to_json(only: [:id, :username]), 'base-endpoint' => namespace_project_path(@project.namespace, @project) } }
+ %input.form-control.filtered-search{ search_filter_input_options(type) }
= icon('filter')
#js-dropdown-hint.filtered-search-input-dropdown-menu.dropdown-menu.hint-dropdown
%ul{ data: { dropdown: true } }