gitlab-org--gitlab-foss/lib/gitlab/ci/status/external/common.rb
Grzegorz Bizon 9f1beed7a7 Link external commit status badge to a target URL
Using new detailed statuses factory for external commit statuses.
2017-01-17 14:30:33 +01:00

22 lines
399 B
Ruby

module Gitlab
module Ci
module Status
module External
module Common
def has_details?
subject.target_url.present? &&
can?(user, :read_commit_status, subject)
end
def details_path
subject.target_url
end
def has_action?
false
end
end
end
end
end
end