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

common.rb « build « status « ci « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b173c23fba4040cf6bb3c8be639350af0ea82a44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
module Gitlab
  module Ci
    module Status
      module Build
        module Common
          def has_details?
            can?(user, :read_build, subject)
          end

          def details_path
            namespace_project_job_path(subject.project.namespace,
                                         subject.project,
                                         subject)
          end
        end
      end
    end
  end
end