summaryrefslogtreecommitdiff
path: root/app/helpers/labels_helper.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-03-26 19:13:49 -0700
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-03-26 19:13:49 -0700
commitd6c8eefb5d0298f0c733ac4880e1e64f2a37b24c (patch)
treee96e4db577868913283a6fcdbd254ca08a998b78 /app/helpers/labels_helper.rb
parent1c2711f7e38a7ca6adb8a0bca5166845405ad5fe (diff)
downloadgitlab-ce-d6c8eefb5d0298f0c733ac4880e1e64f2a37b24c.tar.gz
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
Diffstat (limited to 'app/helpers/labels_helper.rb')
-rw-r--r--app/helpers/labels_helper.rb5
1 files changed, 5 insertions, 0 deletions
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