debian-mirror-gitlab/app/views/projects/cleanup/_show.html.haml

33 lines
1.7 KiB
Text
Raw Normal View History

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
2021-04-17 20:07:23 +05:30
%h4.settings-title.js-settings-toggle.js-settings-toggle-trigger-only= _('Repository cleanup')
%button.btn.gl-button.btn-default.js-settings-toggle
2019-02-15 15:39:39 +05:30
= expanded ? _('Collapse') : _('Expand')
%p
2021-03-11 19:13:27 +05:30
- 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-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
2021-03-11 19:13:27 +05:30
= _("The maximum file size is %{size}.") % { size: number_to_human_size(Gitlab::CurrentSettings.max_attachment_size.megabytes) }
2020-10-24 23:57:45 +05:30
2021-01-29 00:20:46 +05:30
= f.submit _('Start cleanup'), class: 'gl-button btn btn-success'