#new-page-modal.modal
  .modal-header
    %a.close{:"data-dismiss" => :modal} &times;
    %h3 Create new page
  .modal-body
    = render "pages/form", :resource => Page.new
  .modal-footer
    = buttons Page.new

#new-project-modal.modal
  .modal-header
    %a.close{:"data-dismiss" => :modal} &times;
    %h3 Create new project
  .modal-body
    = render "projects/form", :resource => Project.new
  .modal-footer
    = buttons Project.new

- content_for(:page_header) do
  .btn-toolbar
    .btn-group
      = link_to icon(:"project") + t("projects.index.new_project_link"), {:action => :new}, :class => "btn", :"data-toggle" => :modal, :"data-target" => "#new-project-modal"
      = link_to icon(:"page") + t("pages.index.new_page_link"), {:action => :new}, :class => "btn", :"data-toggle" => :modal, :"data-target" => "#new-page-modal"
      /
        %a.btn.dropdown-toggle{:"data-toggle" => "dropdown", :href => "#"}
          %span.caret
        %ul.dropdown-menu
          %li= link_to icon(:search) + "Search", {:action => :new}, :class => "", :"data-toggle" => :modal, :"data-target" => "#quick-jump-modal"
  
#new-page-modal.modal
  .modal-header
    %a.close{:"data-dismiss" => :modal} &times;
    %h3 Create new page
  .modal-body
    = render "pages/form", :resource => Page.new
  .modal-footer
    = buttons Page.new

#new-project-modal.modal
  .modal-header
    %a.close{:"data-dismiss" => :modal} &times;
    %h3 Create new project
  .modal-body
    = render "projects/form", :resource => Project.new
  .modal-footer
    = buttons Project.new

- content_for(:page_header) do
  .btn-toolbar
    .btn-group
      = link_to icon(:"project") + t("projects.index.new_project_link"), {:controller => "projects", :action => :new}, :class => "btn", :"data-toggle" => :modal, :"data-target" => "#new-project-modal"
      = link_to icon(:"page") + t("pages.index.new_page_link"), {:controller => "pages", :action => :new}, :class => "btn", :"data-toggle" => :modal, :"data-target" => "#new-page-modal"
      /
        %a.btn.dropdown-toggle{:"data-toggle" => "dropdown", :href => "#"}
          %span.caret
        %ul.dropdown-menu
          %li= link_to icon(:search) + "Search", {:action => :new}, :class => "", :"data-toggle" => :modal, :"data-target" => "#quick-jump-modal"
  
Fix :new links in shared/index/_toolbar
Fix :new links in shared/index/_toolbar
