2017-01-17 08:16:36 -05:00
|
|
|
module Gitlab
|
|
|
|
module Ci
|
|
|
|
module Status
|
|
|
|
module External
|
|
|
|
module Common
|
|
|
|
def has_details?
|
2017-01-17 08:30:33 -05:00
|
|
|
subject.target_url.present? &&
|
|
|
|
can?(user, :read_commit_status, subject)
|
2017-01-17 08:16:36 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
def details_path
|
|
|
|
subject.target_url
|
|
|
|
end
|
|
|
|
|
|
|
|
def has_action?
|
|
|
|
false
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|