summaryrefslogtreecommitdiff
path: root/app/views/projects/wikis/_main_links.html.haml
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-12-02 13:59:42 +0100
committerDouwe Maan <douwe@gitlab.com>2015-12-02 13:59:42 +0100
commit275c2a3161ac4d5638b8fa39a7355bbd9fc3cf46 (patch)
treeaf29ac754eab345c98bf3bf41e1195cd73d5c0b5 /app/views/projects/wikis/_main_links.html.haml
parent09e712c0fb721059e4b2619eb9fc104257fc492d (diff)
downloadgitlab-ce-275c2a3161ac4d5638b8fa39a7355bbd9fc3cf46.tar.gz
Use new style for wiki
Diffstat (limited to 'app/views/projects/wikis/_main_links.html.haml')
-rw-r--r--app/views/projects/wikis/_main_links.html.haml11
1 files changed, 4 insertions, 7 deletions
diff --git a/app/views/projects/wikis/_main_links.html.haml b/app/views/projects/wikis/_main_links.html.haml
index 14f25822259..29bf5d62abe 100644
--- a/app/views/projects/wikis/_main_links.html.haml
+++ b/app/views/projects/wikis/_main_links.html.haml
@@ -1,9 +1,4 @@
%span.pull-right
- - if can?(current_user, :create_wiki, @project)
- = link_to '#modal-new-wiki', class: "add-new-wiki btn btn-new btn-grouped", "data-toggle" => "modal" do
- %i.fa.fa-plus
- New Page
-
- if (@page && @page.persisted?)
= link_to namespace_project_wiki_history_path(@project.namespace, @project, @page), class: "btn btn-grouped" do
Page History
@@ -11,5 +6,7 @@
= link_to namespace_project_wiki_edit_path(@project.namespace, @project, @page), class: "btn btn-grouped" do
%i.fa.fa-pencil-square-o
Edit
-
-= render 'projects/wikis/new'
+ - if can?(current_user, :admin_wiki, @project)
+ = link_to namespace_project_wiki_path(@project.namespace, @project, @page), data: { confirm: "Are you sure you want to delete this page?"}, method: :delete, class: "btn btn-remove" do
+ = icon('trash')
+ Delete