summaryrefslogtreecommitdiff
path: root/lib/gitlab/ci/status/build/common.rb
blob: 6a75ec5c37f2e803f51966213e2695cb5e92575d (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
27
# frozen_string_literal: true

module Gitlab
  module Ci
    module Status
      module Build
        module Common
          def illustration
            {
              image: 'illustrations/skipped-job_empty.svg',
              size: 'svg-430',
              title: _('This job does not have a trace.')
            }
          end

          def has_details?
            can?(user, :read_build, subject)
          end

          def details_path
            project_job_path(subject.project, subject)
          end
        end
      end
    end
  end
end