2018-12-13 13:39:08 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
module Gitlab
|
|
|
|
module Ci
|
|
|
|
module Status
|
|
|
|
module External
|
|
|
|
module Common
|
2017-09-10 17:25:29 +05:30
|
|
|
def label
|
2019-03-02 22:35:43 +05:30
|
|
|
subject.description.presence || super
|
2017-09-10 17:25:29 +05:30
|
|
|
end
|
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
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
|