mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-09 12:46:07 +10:00
Merge branch '19075-new-wiki' into 'master'
Remove duplicate new page btn from edit wiki
## What does this MR do?
Removes duplicate button on wiki page
## What are the relevant issue numbers?
Closes #19075
## Screenshots (if relevant)


See merge request !4904
(cherry picked from commit 121c5c837f)
This commit is contained in:
committed by
Robert Speicher
parent
a64b7cd3ba
commit
a688eaddc2
@@ -15,9 +15,10 @@
|
||||
Edit Page
|
||||
|
||||
.nav-controls
|
||||
- if can?(current_user, :create_wiki, @project)
|
||||
= link_to '#modal-new-wiki', class: "add-new-wiki btn btn-new", "data-toggle" => "modal" do
|
||||
New Page
|
||||
- if !(@page && @page.persisted?)
|
||||
- if can?(current_user, :create_wiki, @project)
|
||||
= link_to '#modal-new-wiki', class: "add-new-wiki btn btn-new", "data-toggle" => "modal" do
|
||||
New Page
|
||||
= render 'main_links'
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user