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

infrastructure_registry_controller.rb « packages « projects « controllers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c02a0a56e03f6d9a590aed514e798fc0f53bf60b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# frozen_string_literal: true

module Projects
  module Packages
    class InfrastructureRegistryController < Projects::ApplicationController
      include PackagesAccess

      feature_category :infrastructure_as_code

      def show
        @package = project.packages.find(params[:id])
        @package_files = if Feature.enabled?(:packages_installable_package_files, default_enabled: :yaml)
                           @package.installable_package_files.recent
                         else
                           @package.package_files.recent
                         end
      end
    end
  end
end