summaryrefslogtreecommitdiff
path: root/lib/gitlab/ci/status/external/common.rb
blob: 9307545b5b16d40c1dc2b1f792ee1c1c29ee2162 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
module Gitlab
  module Ci
    module Status
      module External
        module Common
          def label
            subject.description
          end

          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