common.rb 468 字节
Newer Older
K
Kamil Trzcinski 已提交
1 2 3 4 5
module Gitlab
  module Ci
    module Status
      module Build
        module Common
6 7 8 9 10 11 12
          def illustration
            {
              image: 'illustrations/skipped-job_empty.svg',
              size: 'svg-430'
            }
          end

13 14
          def has_details?
            can?(user, :read_build, subject)
K
Kamil Trzcinski 已提交
15 16 17
          end

          def details_path
18
            project_job_path(subject.project, subject)
K
Kamil Trzcinski 已提交
19 20 21 22 23 24
          end
        end
      end
    end
  end
end