debian-mirror-gitlab/app/views/admin/application_settings/_package_registry.html.haml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

57 lines
3.7 KiB
Text
Raw Normal View History

2020-11-24 15:15:51 +05:30
- if Gitlab.config.packages.enabled
%section.settings.as-package.no-animate#js-package-settings{ class: ('expanded' if expanded_by_default?) }
.settings-header
2022-08-13 15:12:31 +05:30
%h4.settings-title.js-settings-toggle.js-settings-toggle-trigger-only
2020-11-24 15:15:51 +05:30
= _('Package Registry')
2022-07-23 23:45:48 +05:30
= render Pajamas::ButtonComponent.new(button_options: { class: 'js-settings-toggle' }) do
2020-11-24 15:15:51 +05:30
= expanded_by_default? ? _('Collapse') : _('Expand')
%p
2023-01-13 00:05:48 +05:30
= s_('PackageRegistry|Configure package forwarding and package file size limits.')
2020-11-24 15:15:51 +05:30
= render_if_exists 'admin/application_settings/ee_package_registry'
.settings-content
%h4
= _('Package file size limits')
%p
= _('Set limit to 0 to allow any file size.')
.scrolling-tabs-container.inner-page-scroll-tabs
- if @plans.size > 1
%ul.nav-links.scrolling-tabs.mobile-separator.nav.nav-tabs.mb-3
- @plans.each_with_index do |plan, index|
%li
2022-11-25 23:54:43 +05:30
= link_to admin_plan_limits_path(anchor: 'js-package-settings'), data: { target: "div#plan-package#{index}", action: "plan#{index}", toggle: 'tab'}, class: index == 0 ? 'active': '' do
2020-11-24 15:15:51 +05:30
= plan.name.capitalize
.tab-content
- @plans.each_with_index do |plan, index|
2022-11-25 23:54:43 +05:30
.tab-pane{ :id => "plan-package#{index}", class: index == 0 ? 'active': '' }
= gitlab_ui_form_for plan.actual_limits, url: admin_plan_limits_path(anchor: 'js-package-settings'), html: { class: 'fieldset-form' }, method: :post do |f|
2022-10-11 01:57:18 +05:30
= form_errors(plan)
2020-11-24 15:15:51 +05:30
%fieldset
= f.hidden_field(:plan_id, value: plan.id)
.form-group
= f.label :conan_max_file_size, _('Maximum Conan package file size in bytes'), class: 'label-bold'
2021-03-11 19:13:27 +05:30
= f.number_field :conan_max_file_size, class: 'form-control gl-form-input'
2022-01-26 12:08:38 +05:30
.form-group
= f.label :helm_max_file_size, _('Maximum Helm chart file size in bytes'), class: 'label-bold'
= f.number_field :helm_max_file_size, class: 'form-control gl-form-input'
2020-11-24 15:15:51 +05:30
.form-group
= f.label :maven_max_file_size, _('Maximum Maven package file size in bytes'), class: 'label-bold'
2021-03-11 19:13:27 +05:30
= f.number_field :maven_max_file_size, class: 'form-control gl-form-input'
2020-11-24 15:15:51 +05:30
.form-group
2021-04-17 20:07:23 +05:30
= f.label :npm_max_file_size, _('Maximum npm package file size in bytes'), class: 'label-bold'
2021-03-11 19:13:27 +05:30
= f.number_field :npm_max_file_size, class: 'form-control gl-form-input'
2020-11-24 15:15:51 +05:30
.form-group
= f.label :nuget_max_file_size, _('Maximum NuGet package file size in bytes'), class: 'label-bold'
2021-03-11 19:13:27 +05:30
= f.number_field :nuget_max_file_size, class: 'form-control gl-form-input'
2020-11-24 15:15:51 +05:30
.form-group
= f.label :pypi_max_file_size, _('Maximum PyPI package file size in bytes'), class: 'label-bold'
2021-03-11 19:13:27 +05:30
= f.number_field :pypi_max_file_size, class: 'form-control gl-form-input'
2021-06-08 01:23:25 +05:30
.form-group
= f.label :terraform_module_max_file_size, _('Maximum Terraform Module package file size in bytes'), class: 'label-bold'
= f.number_field :terraform_module_max_file_size, class: 'form-control gl-form-input'
2020-11-24 15:15:51 +05:30
.form-group
= f.label :generic_packages_max_file_size, _('Generic package file size in bytes'), class: 'label-bold'
2021-03-11 19:13:27 +05:30
= f.number_field :generic_packages_max_file_size, class: 'form-control gl-form-input'
2022-11-25 23:54:43 +05:30
= f.submit _('Save %{name} size limits').html_safe % { name: plan.name.capitalize }, pajamas_button: true