diff options
Diffstat (limited to 'app/views/projects/_remove.html.haml')
-rw-r--r-- | app/views/projects/_remove.html.haml | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/app/views/projects/_remove.html.haml b/app/views/projects/_remove.html.haml index 528d802261c..05eab3b3245 100644 --- a/app/views/projects/_remove.html.haml +++ b/app/views/projects/_remove.html.haml @@ -1,9 +1,10 @@ - return unless can?(current_user, :remove_project, project) +- confirm_phrase = s_('DeleteProject|Delete %{name}') % { name: project.full_name } .sub-section - %h4.danger-title= _('Remove project') + %h4.danger-title= _('Delete project') %p - %strong= _('Removing the project will delete its repository and all related resources including issues, merge requests etc.') + %strong= _('Deleting the project will delete its repository and all related resources including issues, merge requests etc.') %p - %strong= _('Removed projects cannot be restored!') - #js-confirm-project-remove{ data: { form_path: project_path(project), confirm_phrase: project.path, warning_message: remove_project_message(project) } } + %strong= _('Deleted projects cannot be restored!') + #js-project-delete-button{ data: { form_path: project_path(project), confirm_phrase: confirm_phrase } } |