Module: Gitlab::Ci::Status::Stage::Common

Defined in:
lib/gitlab/ci/status/stage/common.rb

Instance Method Summary collapse

Instance Method Details

#details_pathObject


12
13
14
15
16
# File 'lib/gitlab/ci/status/stage/common.rb', line 12

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

#has_action?Boolean

Returns:

  • (Boolean)

18
19
20
# File 'lib/gitlab/ci/status/stage/common.rb', line 18

def has_action?
  false
end

#has_details?Boolean

Returns:

  • (Boolean)

8
9
10
# File 'lib/gitlab/ci/status/stage/common.rb', line 8

def has_details?
  can?(user, :read_pipeline, subject.pipeline)
end