diff options
author | Clement Ho <clemmakesapps@gmail.com> | 2018-09-07 22:43:08 +0000 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2018-09-07 22:43:08 +0000 |
commit | 77f1baa3fade1f01d9fb151ae23124c8ede43962 (patch) | |
tree | 19021c5012c11bc8bcd8dafacaea591b8173f57c /app/views/projects/wikis | |
parent | 79322c3c93177a722aba8e1bcb6e8684b074e162 (diff) | |
download | gitlab-ce-77f1baa3fade1f01d9fb151ae23124c8ede43962.tar.gz |
Use gitlab-ui modal wrapped component
Diffstat (limited to 'app/views/projects/wikis')
-rw-r--r-- | app/views/projects/wikis/edit.html.haml | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/app/views/projects/wikis/edit.html.haml b/app/views/projects/wikis/edit.html.haml index d4afa995d63..e12b8f2858c 100644 --- a/app/views/projects/wikis/edit.html.haml +++ b/app/views/projects/wikis/edit.html.haml @@ -28,16 +28,8 @@ = link_to project_wiki_history_path(@project, @page), class: "btn" do = s_("Wiki|Page history") - if can?(current_user, :admin_wiki, @project) - %button.btn.btn-danger{ data: { toggle: 'modal', - target: '#delete-wiki-modal', - delete_wiki_url: project_wiki_path(@project, @page), - page_title: @page.title.capitalize }, - id: 'delete-wiki-button', - type: 'button' } - = _('Delete') + #delete-wiki-modal-wrapper{ data: { delete_wiki_url: project_wiki_path(@project, @page), page_title: @page.title.capitalize } } = render 'form', uploads_path: wiki_attachment_upload_url = render 'sidebar' - -#delete-wiki-modal.modal.fade |