debian-mirror-gitlab/app/views/projects/_remove_fork.html.haml

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

12 lines
684 B
Text
Raw Normal View History

2021-01-29 00:20:46 +05:30
- return unless @project.forked? && can?(current_user, :remove_fork_project, @project)
2022-01-26 12:08:38 +05:30
- remove_form_id = "js-remove-project-fork-form"
2021-01-29 00:20:46 +05:30
.sub-section
%h4.danger-title= _('Remove fork relationship')
%p= remove_fork_project_description_message(@project)
2022-01-26 12:08:38 +05:30
= form_for @project, url: remove_fork_project_path(@project), method: :delete, html: { id: remove_form_id } do |f|
2021-01-29 00:20:46 +05:30
%p
2023-06-20 00:43:36 +05:30
%strong= _('After it is removed, the fork relationship can only be restored by using the API. This project will no longer be able to receive or send merge requests to the upstream project or other forks.')
2022-01-26 12:08:38 +05:30
.js-confirm-danger{ data: remove_fork_project_confirm_json(@project, remove_form_id) }