summaryrefslogtreecommitdiff
path: root/lib/gitlab/ci/status/pipeline/common.rb
blob: 76bfd18bf4040f369e53a751d22d8f66d92eb337 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
module Gitlab
  module Ci
    module Status
      module Pipeline
        module Common
          def has_details?
            can?(user, :read_pipeline, subject)
          end

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

          def has_action?
            false
          end
        end
      end
    end
  end
end