diff options
author | Luke Picciau <git@itscode.red> | 2019-05-29 20:18:40 +0000 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2019-05-29 20:18:40 +0000 |
commit | ffe6cb57a64021dc593037ec18464fd728168ad1 (patch) | |
tree | 6e0d84f6548bb7bb81fe9884c9c6a465b808ede6 /app/views | |
parent | 76471e2f2752da661b7501b7b478316c1003b02b (diff) | |
download | gitlab-ce-ffe6cb57a64021dc593037ec18464fd728168ad1.tar.gz |
Redirect to admin projects index if project was deleted from admin page
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/admin/projects/_projects.html.haml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/admin/projects/_projects.html.haml b/app/views/admin/projects/_projects.html.haml index 9117f63f939..2f7ad35eb3e 100644 --- a/app/views/admin/projects/_projects.html.haml +++ b/app/views/admin/projects/_projects.html.haml @@ -7,7 +7,7 @@ = link_to 'Edit', edit_project_path(project), id: "edit_#{dom_id(project)}", class: "btn" %button.delete-project-button.btn.btn-danger{ data: { toggle: 'modal', target: '#delete-project-modal', - delete_project_url: project_path(project), + delete_project_url: admin_project_path(project), project_name: project.name }, type: 'button' } = s_('AdminProjects|Delete') @@ -17,7 +17,7 @@ - if project.archived %span.badge.badge-warning archived .title - = link_to(admin_namespace_project_path(project.namespace, project)) do + = link_to(admin_project_path(project)) do .dash-project-avatar .avatar-container.rect-avatar.s40 = project_icon(project, alt: '', class: 'avatar project-avatar s40', width: 40, height: 40) |