Common filtering for dashboard and group. Share partial search result partial

This commit is contained in:
Dmitriy Zaporozhets 2013-01-07 20:48:57 +02:00
parent 0a16039924
commit cc64f2a814
11 changed files with 214 additions and 207 deletions

View file

@ -0,0 +1,17 @@
module GroupsHelper
def group_filter_path(entity, options={})
exist_opts = {
status: params[:status],
project_id: params[:project_id],
}
options = exist_opts.merge(options)
case entity
when 'issue' then
issues_group_path(@group, options)
when 'merge_request'
merge_requests_group_path(@group, options)
end
end
end