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

14 lines
1 KiB
Text
Raw Normal View History

2020-01-01 13:55:28 +05:30
- return unless can?(current_user, :remove_project, project)
2021-12-11 22:18:48 +05:30
- merge_requests_count = Projects::AllMergeRequestsCountService.new(project).count
- issues_count = Projects::AllIssuesCountService.new(project).count
2022-04-04 11:22:00 +05:30
- forks_count = Projects::ForksCountService.new(project).count
2020-01-01 13:55:28 +05:30
.sub-section
2020-10-24 23:57:45 +05:30
%h4.danger-title= _('Delete project')
2020-01-01 13:55:28 +05:30
%p
2021-09-30 23:02:18 +05:30
%strong= _('Deleting the project will delete its repository and all related resources, including issues and merge requests.')
2021-03-11 19:13:27 +05:30
= link_to _('Learn more.'), help_page_path('user/project/settings/index', anchor: 'removing-a-fork-relationship'), target: '_blank', rel: 'noopener noreferrer'
2020-07-28 23:09:34 +05:30
%p
2020-10-24 23:57:45 +05:30
%strong= _('Deleted projects cannot be restored!')
2022-04-04 11:22:00 +05:30
#js-project-delete-button{ data: { form_path: project_path(project), confirm_phrase: delete_confirm_phrase(project), is_fork: project.forked?.to_s, issues_count: number_with_delimiter(issues_count), merge_requests_count: number_with_delimiter(merge_requests_count), forks_count: number_with_delimiter(forks_count), stars_count: number_with_delimiter(project.star_count) } }