Commit 1d7b809a authored by Annabel Dunstone's avatar Annabel Dunstone Committed by Jacob Schatz

Move new page link out of sub nav

parent 6f642fd4
......@@ -100,8 +100,8 @@
.sub-header-block {
background-color: $white-light;
border-bottom: 1px solid $white-dark;
margin: 11px 0;
padding-bottom: 11px;
padding: 11px 0;
margin-bottom: 11px;
.oneline {
line-height: 35px;
......
- 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
= link_to namespace_project_wiki_history_path(@project.namespace, @project, @page), class: "btn" do
Page History
- if can?(current_user, :create_wiki, @project)
......
......@@ -10,9 +10,4 @@
= link_to namespace_project_wikis_git_access_path(@project.namespace, @project) do
Git Access
- if can?(current_user, :create_wiki, @project)
= nav_link do
= link_to '#modal-new-wiki', "data-toggle" => "modal" do
New Page
= render 'projects/wikis/new'
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment