2019-04-29 11:01:28 -04:00
|
|
|
- expanded = expanded_by_default?
|
2018-11-19 10:03:58 -05:00
|
|
|
|
|
|
|
%section.settings.no-animate#cleanup{ class: ('expanded' if expanded) }
|
|
|
|
.settings-header
|
2021-03-09 16:09:15 -05:00
|
|
|
%h4.settings-title.js-settings-toggle.js-settings-toggle-trigger-only= _('Repository cleanup')
|
2021-03-08 10:08:54 -05:00
|
|
|
%button.btn.gl-button.btn-default.js-settings-toggle
|
2018-11-19 10:03:58 -05:00
|
|
|
= expanded ? _('Collapse') : _('Expand')
|
|
|
|
%p
|
2021-01-28 16:09:04 -05:00
|
|
|
- link_url = 'https://github.com/newren/git-filter-repo'
|
|
|
|
- link_start = '<a href="%{url}" target="_blank" rel="noopener noreferrer">'.html_safe % { url: link_url }
|
|
|
|
- link_end = '</a>'.html_safe
|
|
|
|
= _("Clean up after running %{link_start}git filter-repo%{link_end} on the repository.").html_safe % { link_start: link_start, link_end: link_end }
|
2020-09-11 14:08:42 -04:00
|
|
|
= link_to sprite_icon('question-o'),
|
2018-11-19 10:03:58 -05:00
|
|
|
help_page_path('user/project/repository/reducing_the_repo_size_using_git.md'),
|
|
|
|
target: '_blank', rel: 'noopener noreferrer'
|
|
|
|
|
|
|
|
.settings-content
|
|
|
|
- url = cleanup_namespace_project_settings_repository_path(@project.namespace, @project)
|
|
|
|
= form_for @project, url: url, method: :post, authenticity_token: true, html: { class: 'js-requires-input' } do |f|
|
2020-07-23 20:09:34 -04:00
|
|
|
%fieldset.gl-mt-0.gl-mb-3
|
|
|
|
.gl-mb-3
|
2020-05-21 14:08:27 -04:00
|
|
|
%h5.gl-mt-0
|
2018-11-19 10:03:58 -05:00
|
|
|
= _("Upload object map")
|
2021-03-17 17:11:29 -04:00
|
|
|
%button.gl-button.btn.btn-default.js-choose-file{ type: "button" }
|
2018-11-19 10:03:58 -05:00
|
|
|
= _("Choose a file")
|
2020-07-06 05:09:20 -04:00
|
|
|
%span.gl-ml-3.js-filename
|
2018-11-19 10:03:58 -05:00
|
|
|
= _("No file selected")
|
2020-06-04 05:08:01 -04:00
|
|
|
= f.file_field :bfg_object_map, class: "hidden js-object-map-input", required: true
|
2018-11-19 10:03:58 -05:00
|
|
|
.form-text.text-muted
|
2021-01-25 19:08:57 -05:00
|
|
|
= _("The maximum file size is %{size}.") % { size: number_to_human_size(Gitlab::CurrentSettings.max_attachment_size.megabytes) }
|
2020-08-10 05:09:54 -04:00
|
|
|
|
2021-03-17 17:11:29 -04:00
|
|
|
= f.submit _('Start cleanup'), class: 'gl-button btn btn-confirm'
|