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

builds_controller.rb « admin « ci « controllers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 38abfdeafbfb17f06b4c6218697f7227de0e18ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
module Ci
  class Admin::BuildsController < Ci::Admin::ApplicationController
    def index
      @scope = params[:scope]
      @builds = Ci::Build.order('created_at DESC').page(params[:page]).per(30)

      @builds =
        case @scope
        when "pending"
          @builds.pending
        when "running"
          @builds.running
        else
          @builds
        end
    end
  end
end