diff options
author | Shah El-Rahman <selrahman@gitlab.com> | 2018-02-08 06:32:17 +0300 |
---|---|---|
committer | Clement Ho <clemmakesapps@gmail.com> | 2018-02-08 06:32:17 +0300 |
commit | 49e27447c58bf0e448bae2797b60229b6b1918f0 (patch) | |
tree | 1cc5ac0899b934367a07a5e722237ea61de1c531 /app/views/admin | |
parent | 017de5c5cf5d78f5f66a174773489642cf8bb5dd (diff) |
Resolve "New design for project deletion confirmation"
Diffstat (limited to 'app/views/admin')
-rw-r--r-- | app/views/admin/projects/_projects.html.haml | 9 |
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 |