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

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

66 lines
4 KiB
Text
Raw Normal View History

2018-12-05 23:21:45 +05:30
- breadcrumb_title _("Repository")
- page_title _("Repository")
2023-03-04 22:38:38 +05:30
- add_page_specific_style 'page_bundles/settings'
2018-12-05 23:21:45 +05:30
2021-06-08 01:23:25 +05:30
%section.settings.as-default-branch-name.no-animate#js-default-branch-name{ 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
2022-05-07 20:08:51 +05:30
= _('Default branch')
2022-07-23 23:45:48 +05:30
= render Pajamas::ButtonComponent.new(button_options: { class: 'js-settings-toggle' }) do
2021-06-08 01:23:25 +05:30
= expanded_by_default? ? _('Collapse') : _('Expand')
%p
2022-05-07 20:08:51 +05:30
= s_('AdminSettings|Set the initial name and protections for the default branch of new repositories created in the instance.')
2021-06-08 01:23:25 +05:30
.settings-content
2022-05-07 20:08:51 +05:30
= render 'default_branch'
2020-07-28 23:09:34 +05:30
2018-12-05 23:21:45 +05:30
%section.settings.as-mirror.no-animate#js-mirror-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
2019-12-26 22:10:19 +05:30
= _('Repository mirroring')
2022-07-23 23:45:48 +05:30
= render Pajamas::ButtonComponent.new(button_options: { class: 'js-settings-toggle' }) do
2018-12-05 23:21:45 +05:30
= expanded_by_default? ? 'Collapse' : 'Expand'
%p
2019-12-26 22:10:19 +05:30
= _('Configure repository mirroring.')
2023-03-04 22:38:38 +05:30
= link_to _('Learn more.'), help_page_path('user/project/repository/mirror/index.md'), target: '_blank', rel: 'noopener noreferrer'
2018-12-05 23:21:45 +05:30
.settings-content
= render partial: 'repository_mirrors_form'
2020-10-24 23:57:45 +05:30
%section.settings.as-repository-storage.no-animate#js-repository-storage-settings{ class: ('expanded' if expanded_by_default?), data: { qa_selector: 'repository_storage_settings_content' } }
2018-12-05 23:21:45 +05:30
.settings-header
2022-08-13 15:12:31 +05:30
%h4.settings-title.js-settings-toggle.js-settings-toggle-trigger-only
2018-12-05 23:21:45 +05:30
= _('Repository storage')
2022-07-23 23:45:48 +05:30
= render Pajamas::ButtonComponent.new(button_options: { class: 'js-settings-toggle' }) do
2018-12-05 23:21:45 +05:30
= expanded_by_default? ? _('Collapse') : _('Expand')
%p
2021-09-30 23:02:18 +05:30
= _('Configure repository storage.')
2023-03-04 22:38:38 +05:30
= link_to _('Learn more.'), help_page_path('administration/repository_storage_paths.md'), target: '_blank', rel: 'noopener noreferrer'
2018-12-05 23:21:45 +05:30
.settings-content
= render 'repository_storage'
%section.settings.as-repository-check.no-animate#js-repository-check-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
2018-12-05 23:21:45 +05:30
= _('Repository maintenance')
2022-07-23 23:45:48 +05:30
= render Pajamas::ButtonComponent.new(button_options: { class: 'js-settings-toggle' }) do
2018-12-05 23:21:45 +05:30
= expanded_by_default? ? _('Collapse') : _('Expand')
%p
2021-09-30 23:02:18 +05:30
- repository_checks_link_url = help_page_path('administration/repository_checks.md')
- repository_checks_link_start = '<a href="%{url}" target="_blank" rel="noopener noreferrer">'.html_safe % { url: repository_checks_link_url }
- housekeeping_link_url = help_page_path('administration/housekeeping.md')
- housekeeping_link_start = '<a href="%{url}" target="_blank" rel="noopener noreferrer">'.html_safe % { url: housekeeping_link_url }
= html_escape(s_('Configure %{repository_checks_link_start}repository checks%{link_end} and %{housekeeping_link_start}housekeeping%{link_end} on repositories.')) % { repository_checks_link_start: repository_checks_link_start, housekeeping_link_start: housekeeping_link_start, link_end: '</a>'.html_safe }
2018-12-05 23:21:45 +05:30
.settings-content
= render 'repository_check'
2019-12-04 20:38:33 +05:30
%section.settings.as-repository-static-objects.no-animate#js-repository-static-objects-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
2021-10-27 15:23:28 +05:30
= _('External storage for repository static objects')
2022-07-23 23:45:48 +05:30
= render Pajamas::ButtonComponent.new(button_options: { class: 'js-settings-toggle' }) do
2019-12-04 20:38:33 +05:30
= expanded_by_default? ? _('Collapse') : _('Expand')
%p
2021-10-27 15:23:28 +05:30
= _('Serve repository static objects (for example, archives and blobs) from external storage.')
2023-03-04 22:38:38 +05:30
= link_to _('Learn more.'), help_page_path('administration/static_objects_external_storage.md'), target: '_blank', rel: 'noopener noreferrer'
2019-12-04 20:38:33 +05:30
.settings-content
= render 'repository_static_objects'