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

labels_controller.rb « dashboard « controllers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2a88350a4cabeb5d90ab1a87680caf3cec899409 (plain)
1
2
3
4
5
6
7
8
9
class Dashboard::LabelsController < Dashboard::ApplicationController
  def index
    labels = Label.where(project_id: projects).select(:id, :title, :color).uniq(:title)

    respond_to do |format|
      format.json { render json: labels }
    end
  end
end