2019-07-31 22:56:46 +05:30
|
|
|
- expanded = expanded_by_default?
|
2019-02-15 15:39:39 +05:30
|
|
|
|
|
|
|
%section.settings.no-animate#cleanup{ class: ('expanded' if expanded) }
|
|
|
|
.settings-header
|
|
|
|
%h4= _('Repository cleanup')
|
|
|
|
%button.btn.js-settings-toggle
|
|
|
|
= expanded ? _('Collapse') : _('Expand')
|
|
|
|
%p
|
2020-06-23 00:09:42 +05:30
|
|
|
= _("Clean up after running %{filter_repo} on the repository" % { filter_repo: link_to_filter_repo }).html_safe
|
2020-11-24 15:15:51 +05:30
|
|
|
= link_to sprite_icon('question-o'),
|
2019-02-15 15:39:39 +05:30
|
|
|
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-10-24 23:57:45 +05:30
|
|
|
%fieldset.gl-mt-0.gl-mb-3
|
|
|
|
.gl-mb-3
|
2020-06-23 00:09:42 +05:30
|
|
|
%h5.gl-mt-0
|
2019-02-15 15:39:39 +05:30
|
|
|
= _("Upload object map")
|
|
|
|
%button.btn.btn-default.js-choose-file{ type: "button" }
|
|
|
|
= _("Choose a file")
|
2020-07-28 23:09:34 +05:30
|
|
|
%span.gl-ml-3.js-filename
|
2019-02-15 15:39:39 +05:30
|
|
|
= _("No file selected")
|
2020-06-23 00:09:42 +05:30
|
|
|
= f.file_field :bfg_object_map, class: "hidden js-object-map-input", required: true
|
2019-02-15 15:39:39 +05:30
|
|
|
.form-text.text-muted
|
|
|
|
= _("The maximum file size allowed is %{size}.") % { size: number_to_human_size(Gitlab::CurrentSettings.max_attachment_size.megabytes) }
|
2020-10-24 23:57:45 +05:30
|
|
|
|
|
|
|
.gl-display-flex.gl-justify-content-end
|
|
|
|
= f.submit _('Start cleanup'), class: 'btn btn-success'
|