Module: Gitlab::Ci::Status::Pipeline::Common

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

Instance Method Summary collapse

Instance Method Details

#details_pathObject


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

def details_path
  project_pipeline_path(subject.project, subject)
end

#has_action?Boolean

Returns:

  • (Boolean)

16
17
18
# File 'lib/gitlab/ci/status/pipeline/common.rb', line 16

def has_action?
  false
end

#has_details?Boolean

Returns:

  • (Boolean)

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

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