Welcome to mirror list, hosted at ThFree Co, Russian Federation.

common.rb « build « status « ci « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 78d84e2d0587ff6139e1af15f36f724e1acd74ed (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/empty-state/empty-job-skipped-md.svg',
              size: '',
              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