Common filtering for dashboard and group. Share partial search result partial
This commit is contained in:
parent
0a16039924
commit
cc64f2a814
11 changed files with 214 additions and 207 deletions
17
app/helpers/groups_helper.rb
Normal file
17
app/helpers/groups_helper.rb
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue