summaryrefslogtreecommitdiff
path: root/lib/gitlab/ci/status/build/common.rb
blob: 3fec2c5d4dbeada7cc9967eb3d387075b8837648 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
module Gitlab
  module Ci
    module Status
      module Build
        module Common
          def has_details?
            can?(user, :read_build, subject)
          end

          def details_path
            namespace_project_build_path(subject.project.namespace,
                                         subject.project,
                                         subject)
          end
        end
      end
    end
  end
end