diff options
author | Constance Okoghenun <cokoghenun@gitlab.com> | 2018-05-03 12:41:28 +0100 |
---|---|---|
committer | Constance Okoghenun <cokoghenun@gitlab.com> | 2018-05-03 12:41:28 +0100 |
commit | c9b5c42b1862675ad43e4e8e7411f7048be8abfc (patch) | |
tree | 639d526bd21fbddfa97ca6078bf06172bb3ec5fe /app/views/projects/wikis | |
parent | 86b8fd3b1aa8b5724d4aa425f43a812519a4c8d0 (diff) | |
download | gitlab-ce-c9b5c42b1862675ad43e4e8e7411f7048be8abfc.tar.gz |
Added commit form fields for delete page confirmation
Diffstat (limited to 'app/views/projects/wikis')
-rw-r--r-- | app/views/projects/wikis/edit.html.haml | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/app/views/projects/wikis/edit.html.haml b/app/views/projects/wikis/edit.html.haml index e51fa1abfe4..abc8f7cc04b 100644 --- a/app/views/projects/wikis/edit.html.haml +++ b/app/views/projects/wikis/edit.html.haml @@ -28,11 +28,10 @@ = link_to project_wiki_history_path(@project, @page), class: "btn" do = s_("Wiki|Page history") - if can?(current_user, :admin_wiki, @project) - -# = link_to project_wiki_path(@project, @page), data: { confirm: s_("WikiPageConfirmDelete|Are you sure you want to delete this page?")}, method: :delete, class: "btn btn-danger" do - -# = _("Delete") %button.btn.btn-danger{ data: { toggle: 'modal', target: '#delete-wiki-modal', - delete_wiki_url: project_wiki_path(@project, @page) }, + delete_wiki_url: project_wiki_path(@project, @page), + page_title: @page.title.capitalize }, id: 'delete-wiki-button', type: 'button' } = _('Delete') |