_nav.html.haml 626 Bytes
Newer Older
1
%ul.nav.nav-tabs
2 3
  = nav_link(html_options: {class: params[:id] == 'home' ? 'active' : '' }) do
    = link_to 'Home', project_wiki_path(@project, :home)
4

5 6
  = nav_link(path: 'wikis#pages') do
    = link_to 'Pages', pages_project_wikis_path(@project)
7

8 9 10 11
  = nav_link(path: 'wikis#git_access') do
    = link_to git_access_project_wikis_path(@project) do
      %i.icon-download-alt
      Git Access
12 13

  - if can?(current_user, :write_wiki, @project)
14
    .pull-right
15
      = link_to '#modal-new-wiki', class: "add-new-wiki btn btn-new", "data-toggle" => "modal" do
16 17 18
        %i.icon-plus
        New Page

19
= render 'projects/wikis/new'