debian-mirror-gitlab/app/views/projects/settings/_archive.html.haml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
2 KiB
Text
Raw Normal View History

2020-01-01 13:55:28 +05:30
- return unless can?(current_user, :archive_project, @project)
2023-01-13 00:05:48 +05:30
.sub-section
2020-01-01 13:55:28 +05:30
%h4.warning-title
- if @project.archived?
= _('Unarchive project')
- else
= _('Archive project')
- if @project.archived?
2022-08-13 15:12:31 +05:30
- link_start = '<a href="%{url}" target="_blank" rel="noopener noreferrer">'.html_safe % { url: help_page_path('user/project/settings/index', anchor: 'unarchive-a-project') }
2022-07-23 23:45:48 +05:30
%p= _("Unarchiving the project restores its members' ability to make commits, and create issues, comments, and other entities. %{strong_start}After you unarchive the project, it displays in the search and on the dashboard.%{strong_end} %{link_start}Learn more.%{link_end}").html_safe % { strong_start: '<strong>'.html_safe, strong_end: '</strong>'.html_safe, link_start: link_start, link_end: '</a>'.html_safe }
2020-01-01 13:55:28 +05:30
= link_to _('Unarchive project'), unarchive_project_path(@project),
2022-04-04 11:22:00 +05:30
aria: { label: _('Unarchive project') },
2020-01-01 13:55:28 +05:30
data: { confirm: _("Are you sure that you want to unarchive this project?"), qa_selector: 'unarchive_project_link' },
2021-04-29 21:17:54 +05:30
method: :post, class: "gl-button btn btn-confirm"
2020-01-01 13:55:28 +05:30
- else
2022-08-13 15:12:31 +05:30
- link_start = '<a href="%{url}" target="_blank" rel="noopener noreferrer">'.html_safe % { url: help_page_path('user/project/settings/index', anchor: 'archive-a-project') }
2022-07-23 23:45:48 +05:30
%p= _("Archiving the project makes it entirely read-only. It is hidden from the dashboard and doesn't display in searches. %{strong_start}The repository cannot be committed to, and no issues, comments, or other entities can be created.%{strong_end} %{link_start}Learn more.%{link_end}").html_safe % { strong_start: '<strong>'.html_safe, strong_end: '</strong>'.html_safe, link_start: link_start, link_end: '</a>'.html_safe }
2021-01-03 14:25:43 +05:30
= link_to _('Archive project'), archive_project_path(@project),
2022-04-04 11:22:00 +05:30
aria: { label: _('Archive project') },
2022-06-21 17:19:12 +05:30
data: { confirm: _("Are you sure that you want to archive this project?"), qa_selector: 'archive_project_link', 'confirm-btn-variant': 'confirm' },
method: :post, class: "gl-button btn btn-confirm"