2019-12-17 10:08:15 -05:00
|
|
|
- return unless can?(current_user, :remove_project, project)
|
|
|
|
|
|
|
|
.sub-section
|
2020-08-12 17:09:54 -04:00
|
|
|
%h4.danger-title= _('Delete project')
|
2019-12-17 10:08:15 -05:00
|
|
|
%p
|
2021-07-16 11:09:56 -04:00
|
|
|
%strong= _('Deleting the project will delete its repository and all related resources, including issues and merge requests.')
|
2021-01-29 10:09:40 -05:00
|
|
|
= link_to _('Learn more.'), help_page_path('user/project/settings/index', anchor: 'removing-a-fork-relationship'), target: '_blank', rel: 'noopener noreferrer'
|
2020-07-15 14:09:09 -04:00
|
|
|
%p
|
2020-08-12 17:09:54 -04:00
|
|
|
%strong= _('Deleted projects cannot be restored!')
|
2020-11-11 07:09:06 -05:00
|
|
|
#js-project-delete-button{ data: { form_path: project_path(project), confirm_phrase: project.path } }
|