summaryrefslogtreecommitdiff
path: root/app/views/projects/_remove.html.haml
blob: 05eab3b32451b04c0f29eaef1192bb37fc16498c (plain)
1
2
3
4
5
6
7
8
9
10
- return unless can?(current_user, :remove_project, project)
- confirm_phrase = s_('DeleteProject|Delete %{name}') % { name: project.full_name }

.sub-section
  %h4.danger-title= _('Delete project')
  %p
    %strong= _('Deleting the project will delete its repository and all related resources including issues, merge requests etc.')
  %p
    %strong= _('Deleted projects cannot be restored!')
  #js-project-delete-button{ data: { form_path: project_path(project), confirm_phrase: confirm_phrase } }