summaryrefslogtreecommitdiff
path: root/lib/gitlab/ci/status/stage/common.rb
blob: f12daaa96763e53402c3d2a8c214bbac5e4b263e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# frozen_string_literal: true

module Gitlab
  module Ci
    module Status
      module Stage
        module Common
          def has_details?
            can?(user, :read_pipeline, subject.pipeline)
          end

          def details_path
            project_pipeline_path(subject.pipeline.project,
                                  subject.pipeline,
                                  anchor: subject.name)
          end

          def has_action?
            false
          end
        end
      end
    end
  end
end