summaryrefslogtreecommitdiff
path: root/app/views/admin/projects
diff options
context:
space:
mode:
authorLuke Picciau <git@itscode.red>2019-05-29 20:18:40 +0000
committerRobert Speicher <rspeicher@gmail.com>2019-05-29 20:18:40 +0000
commitffe6cb57a64021dc593037ec18464fd728168ad1 (patch)
tree6e0d84f6548bb7bb81fe9884c9c6a465b808ede6 /app/views/admin/projects
parent76471e2f2752da661b7501b7b478316c1003b02b (diff)
downloadgitlab-ce-ffe6cb57a64021dc593037ec18464fd728168ad1.tar.gz
Redirect to admin projects index if project was deleted from admin page
Diffstat (limited to 'app/views/admin/projects')
-rw-r--r--app/views/admin/projects/_projects.html.haml4
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)