summaryrefslogtreecommitdiff
path: root/lib/gitlab/ci/status/build/common.rb
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