gitlab-org--gitlab-foss/app/helpers/projects/terraform_helper.rb

11 lines
342 B
Ruby

# frozen_string_literal: true
module Projects::TerraformHelper
def js_terraform_list_data(current_user, project)
{
empty_state_image: image_path('illustrations/empty-state/empty-serverless-lg.svg'),
project_path: project.full_path,
terraform_admin: current_user&.can?(:admin_terraform_state, project)
}
end
end