2018-09-18 04:42:11 -04:00
|
|
|
- breadcrumb_title _("Repository")
|
|
|
|
- page_title _("Repository")
|
2018-09-04 14:06:57 -04:00
|
|
|
- @content_class = "limit-container-width" unless fluid_layout
|
|
|
|
|
2021-04-20 17:09:07 -04:00
|
|
|
%section.settings.as-default-branch-name.no-animate#js-default-branch-name{ class: ('expanded' if expanded_by_default?) }
|
|
|
|
.settings-header
|
|
|
|
%h4
|
|
|
|
= _('Default initial branch name')
|
|
|
|
%button.btn.gl-button.btn-default.js-settings-toggle{ type: 'button' }
|
|
|
|
= expanded_by_default? ? _('Collapse') : _('Expand')
|
|
|
|
%p
|
2021-07-05 23:08:11 -04:00
|
|
|
= s_('AdminSettings|The default name for the initial branch of new repositories created in the instance.')
|
2021-04-20 17:09:07 -04:00
|
|
|
.settings-content
|
|
|
|
= render 'initial_branch_name'
|
2020-07-13 11:09:08 -04:00
|
|
|
|
2018-09-19 06:57:57 -04:00
|
|
|
%section.settings.as-mirror.no-animate#js-mirror-settings{ class: ('expanded' if expanded_by_default?) }
|
2018-09-04 14:06:57 -04:00
|
|
|
.settings-header
|
|
|
|
%h4
|
2019-10-25 02:06:19 -04:00
|
|
|
= _('Repository mirroring')
|
2021-01-20 04:10:52 -05:00
|
|
|
%button.btn.gl-button.btn-default.js-settings-toggle{ type: 'button' }
|
2018-09-19 06:57:57 -04:00
|
|
|
= expanded_by_default? ? 'Collapse' : 'Expand'
|
2018-09-04 14:06:57 -04:00
|
|
|
%p
|
2019-10-25 02:06:19 -04:00
|
|
|
= _('Configure repository mirroring.')
|
2021-07-15 05:09:35 -04:00
|
|
|
= link_to s_('Learn more.'), help_page_path('user/project/repository/repository_mirroring.md'), target: '_blank', rel: 'noopener noreferrer'
|
2018-09-04 14:06:57 -04:00
|
|
|
.settings-content
|
|
|
|
= render partial: 'repository_mirrors_form'
|
|
|
|
|
2020-07-21 14:09:45 -04:00
|
|
|
%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-09-04 14:06:57 -04:00
|
|
|
.settings-header
|
|
|
|
%h4
|
|
|
|
= _('Repository storage')
|
2021-01-20 04:10:52 -05:00
|
|
|
%button.btn.gl-button.btn-default.js-settings-toggle{ type: 'button' }
|
2018-09-19 06:57:57 -04:00
|
|
|
= expanded_by_default? ? _('Collapse') : _('Expand')
|
2018-09-04 14:06:57 -04:00
|
|
|
%p
|
2021-07-08 05:09:33 -04:00
|
|
|
= _('Configure repository storage.')
|
|
|
|
= link_to s_('Learn more.'), help_page_path('administration/repository_storage_paths.md'), target: '_blank', rel: 'noopener noreferrer'
|
2018-09-04 14:06:57 -04:00
|
|
|
.settings-content
|
|
|
|
= render 'repository_storage'
|
|
|
|
|
2018-09-19 06:57:57 -04:00
|
|
|
%section.settings.as-repository-check.no-animate#js-repository-check-settings{ class: ('expanded' if expanded_by_default?) }
|
2018-09-04 14:06:57 -04:00
|
|
|
.settings-header
|
|
|
|
%h4
|
|
|
|
= _('Repository maintenance')
|
2021-01-20 04:10:52 -05:00
|
|
|
%button.btn.gl-button.btn-default.js-settings-toggle{ type: 'button' }
|
2018-09-19 06:57:57 -04:00
|
|
|
= expanded_by_default? ? _('Collapse') : _('Expand')
|
2018-09-04 14:06:57 -04:00
|
|
|
%p
|
2021-07-09 11:09:47 -04:00
|
|
|
- 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-09-04 14:06:57 -04:00
|
|
|
.settings-content
|
|
|
|
= render 'repository_check'
|
2019-07-22 10:56:40 -04:00
|
|
|
|
|
|
|
%section.settings.as-repository-static-objects.no-animate#js-repository-static-objects-settings{ class: ('expanded' if expanded_by_default?) }
|
|
|
|
.settings-header
|
|
|
|
%h4
|
2021-07-20 08:10:29 -04:00
|
|
|
= _('External storage for repository static objects')
|
2021-01-20 04:10:52 -05:00
|
|
|
%button.btn.gl-button.btn-default.js-settings-toggle{ type: 'button' }
|
2019-07-22 10:56:40 -04:00
|
|
|
= expanded_by_default? ? _('Collapse') : _('Expand')
|
|
|
|
%p
|
2021-07-20 08:10:29 -04:00
|
|
|
= _('Serve repository static objects (for example, archives and blobs) from external storage.')
|
|
|
|
= link_to s_('Learn more.'), help_page_path('administration/static_objects_external_storage.md'), target: '_blank', rel: 'noopener noreferrer'
|
2019-07-22 10:56:40 -04:00
|
|
|
.settings-content
|
|
|
|
= render 'repository_static_objects'
|