2020-10-28 17:08:42 -04:00
- return unless @project.forked? && can?(current_user, :remove_fork_project, @project)
2021-11-30 10:14:19 -05:00
- remove_form_id = "js-remove-project-fork-form"
2020-10-28 17:08:42 -04:00
.sub-section
%h4.danger-title= _('Remove fork relationship')
%p= remove_fork_project_description_message(@project)
2021-11-30 10:14:19 -05:00
= form_for @project, url: remove_fork_project_path(@project), method: :delete, html: { id: remove_form_id } do |f|
2020-10-28 17:08:42 -04:00
%p
2020-11-17 13:09:20 -05:00
%strong= _('Once removed, the fork relationship cannot be restored. This project will no longer be able to receive or send merge requests to the source project or other forks.')
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'
2021-11-30 10:14:19 -05:00
.js-confirm-danger{ data: remove_fork_project_confirm_json(@project, remove_form_id) }