summaryrefslogtreecommitdiff
path: root/app/helpers/groups_helper.rb
blob: 283119bc24ceb5ae503fcfd374e89c6e7db204b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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