From d6c8eefb5d0298f0c733ac4880e1e64f2a37b24c Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Thu, 26 Mar 2015 19:13:49 -0700 Subject: Big refactoring of issues filters * Squash project users selectbox and users selectbox into one class * Move from API autocomplete to GitLab internal one * Smarter filter for project/group/all issues * Use selectbox with searchbox for assignee/author/milestone/label * Switch to ajax filter for issue author/assignee --- app/helpers/labels_helper.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'app/helpers/labels_helper.rb') diff --git a/app/helpers/labels_helper.rb b/app/helpers/labels_helper.rb index 49063491abf..aa98ead43f1 100644 --- a/app/helpers/labels_helper.rb +++ b/app/helpers/labels_helper.rb @@ -47,4 +47,9 @@ module LabelsHelper "#FFF" end end + + def project_labels_options(project) + options_for_select([['Any', nil]]) + + options_from_collection_for_select(project.labels, 'name', 'name', params[:label_name]) + end end -- cgit v1.2.1