- @no_container = true
- page_title "Edit", @page.title.capitalize, "Wiki"
= render 'nav'

%div{ class: (container_class) }
  .top-area
    .nav-text
      %strong
        - if @page.persisted?
          = link_to @page.title.capitalize, namespace_project_wiki_path(@project.namespace, @project, @page)
        - else
          = @page.title.capitalize
      %span.light
        &middot;
        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
      = render 'main_links'


  = render 'form'

- @no_container = true
- page_title "Edit", @page.title.capitalize, "Wiki"
= render 'nav'

%div{ class: (container_class) }
  .top-area
    .nav-text
      %strong
        - if @page.persisted?
          = link_to @page.title.capitalize, namespace_project_wiki_path(@project.namespace, @project, @page)
        - else
          = @page.title.capitalize
      %span.light
        &middot;
        Edit Page

    .nav-controls
      = render 'main_links'


  = render 'form'

Remove duplicate new page btn from edit wiki
Remove duplicate new page btn from edit wiki
