summaryrefslogtreecommitdiff
path: root/app/views/admin/projects
diff options
context:
space:
mode:
authorShah El-Rahman <selrahman@gitlab.com>2018-02-08 03:32:17 +0000
committerClement Ho <clemmakesapps@gmail.com>2018-02-08 03:32:17 +0000
commit49e27447c58bf0e448bae2797b60229b6b1918f0 (patch)
tree1cc5ac0899b934367a07a5e722237ea61de1c531 /app/views/admin/projects
parent017de5c5cf5d78f5f66a174773489642cf8bb5dd (diff)
downloadgitlab-ce-49e27447c58bf0e448bae2797b60229b6b1918f0.tar.gz
Resolve "New design for project deletion confirmation"
Diffstat (limited to 'app/views/admin/projects')
-rw-r--r--app/views/admin/projects/_projects.html.haml9
1 files changed, 8 insertions, 1 deletions
diff --git a/app/views/admin/projects/_projects.html.haml b/app/views/admin/projects/_projects.html.haml
index c69c2761189..b5d7b889504 100644
--- a/app/views/admin/projects/_projects.html.haml
+++ b/app/views/admin/projects/_projects.html.haml
@@ -5,7 +5,12 @@
%li.project-row{ class: ('no-description' if project.description.blank?) }
.controls
= link_to 'Edit', edit_project_path(project), id: "edit_#{dom_id(project)}", class: "btn"
- = link_to 'Delete', [project.namespace.becomes(Namespace), project], data: { confirm: remove_project_message(project) }, method: :delete, class: "btn btn-remove"
+ %button.delete-project-button.btn.btn-danger{ data: { toggle: 'modal',
+ target: '#delete-project-modal',
+ delete_project_url: project_path(project),
+ project_name: project.name }, type: 'button' }
+ = s_('AdminProjects|Delete')
+
.stats
%span.badge
= storage_counter(project.statistics.storage_size)
@@ -31,3 +36,5 @@
= paginate @projects, theme: 'gitlab'
- else
.nothing-here-block No projects found
+
+ #delete-project-modal