2018-10-30 15:05:07 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2016-12-05 05:35:27 -05:00
|
|
|
module Gitlab
|
|
|
|
module Ci
|
|
|
|
module Status
|
2016-12-02 07:27:26 -05:00
|
|
|
module Pipeline
|
|
|
|
module Common
|
2016-12-08 08:28:49 -05:00
|
|
|
def has_details?
|
|
|
|
can?(user, :read_pipeline, subject)
|
2016-12-02 07:27:26 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
def details_path
|
2017-06-29 13:06:35 -04:00
|
|
|
project_pipeline_path(subject.project, subject)
|
2016-12-02 07:27:26 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
def has_action?
|
|
|
|
false
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|