summaryrefslogtreecommitdiff
path: root/lib/gitlab/ci/status/external/common.rb
blob: f067381d6a87447e9829561a06fed165a9df0b94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
module Gitlab
  module Ci
    module Status
      module External
        module Common
          def has_details?
            can?(user, :read_commit_status, subject) &&
              subject.target_url.present?
          end

          def details_path
            subject.target_url
          end

          def has_action?
            false
          end
        end
      end
    end
  end
end