BigW Consortium Gitlab

common.rb 429 Bytes
Newer Older
1 2 3 4 5
module Gitlab
  module Ci
    module Status
      module Build
        module Common
6 7
          def has_details?
            can?(user, :read_build, subject)
8 9 10
          end

          def details_path
11 12
            namespace_project_build_path(subject.project.namespace,
                                         subject.project,
13
                                         subject)
14 15 16 17 18 19
          end
        end
      end
    end
  end
end