File: _show.html.haml

package info (click to toggle)
gitlab 17.6.5-19
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 629,368 kB
  • sloc: ruby: 1,915,304; javascript: 557,307; sql: 60,639; xml: 6,509; sh: 4,567; makefile: 1,239; python: 406
file content (20 lines) | stat: -rw-r--r-- 1,172 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
- expanded = expanded_by_default?

= render ::Layouts::SettingsBlockComponent.new(_('Repository maintenance'),
  id: 'cleanup',
  expanded: expanded) do |c|
  - c.with_description do
    = s_('ProjectMaintenance|Manage repository storage and cleanup.')
  - c.with_body do
    = render Pajamas::AlertComponent.new(variant: :danger, alert_options: { class: 'gl-mb-5' }, dismissible: false) do |c|
      - c.with_body do
        - link_start = '<a href="%{url}" target="_blank" rel="noopener noreferrer">'.html_safe
        - docs_link_start = link_start % { url: help_page_path('user/project/settings/import_export.md') }
        - link_end = '</a>'.html_safe
        = s_('ProjectMaintenance|To ensure that a full backup is available in case changes need to be restored, you should make an %{docs_link_start}export of the project%{docs_link_end}.').html_safe % { docs_link_start: docs_link_start, docs_link_end: link_end }

    - if current_user.can?(:owner_access, @project) && Feature.enabled?(:rewrite_history_ui, @project)
      = render "projects/maintenance/remove_blobs"
      = render "projects/maintenance/redact_text"

    = render "projects/maintenance/cleanup"