Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dashboard_helper.rb « helpers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 540a73effe8e9861e351e5902b4e349241d0ae90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
module DashboardHelper
  def dashboard_filter_path(entity, options={})
    case entity
    when 'issue' then
      dashboard_issues_path(options)
    when 'merge_request'
      dashboard_merge_requests_path(options)
    end
  end

  def entities_per_project project, entity
    project.items_for(entity).where(assignee_id: current_user.id).count
  end
end