BigW Consortium Gitlab

_nav.html.haml 716 Bytes
Newer Older
1
.top-area
2
  %ul.nav-links
Douwe Maan committed
3 4 5 6 7 8 9 10 11
    = nav_link(html_options: {class: params[:id] == 'home' ? 'active' : '' }) do
      = link_to 'Home', namespace_project_wiki_path(@project.namespace, @project, :home)

    = nav_link(path: 'wikis#pages') do
      = link_to 'Pages', namespace_project_wiki_pages_path(@project.namespace, @project)

    = nav_link(path: 'wikis#git_access') do
      = link_to namespace_project_wikis_git_access_path(@project.namespace, @project) do
        Git Access
12 13 14 15 16 17 18

  .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
        = icon('plus')
        New Page

19
= render 'projects/wikis/new'