2013-03-15 08:20:03 -04:00
|
|
|
%ul.nav.nav-tabs
|
2013-03-18 16:43:14 -04:00
|
|
|
= nav_link(html_options: {class: params[:id] == 'home' ? 'active' : '' }) do
|
|
|
|
= link_to 'Home', project_wiki_path(@project, :home)
|
2013-03-14 16:24:27 -04:00
|
|
|
|
2013-03-18 16:43:14 -04:00
|
|
|
= nav_link(path: 'wikis#pages') do
|
|
|
|
= link_to 'Pages', pages_project_wikis_path(@project)
|
2013-03-14 16:24:27 -04:00
|
|
|
|
2013-03-18 16:43:14 -04:00
|
|
|
= nav_link(path: 'wikis#git_access') do
|
|
|
|
= link_to git_access_project_wikis_path(@project) do
|
|
|
|
%i.icon-download-alt
|
|
|
|
Git Access
|
2013-03-18 17:08:54 -04:00
|
|
|
|
|
|
|
- if can?(current_user, :write_wiki, @project)
|
2013-04-16 15:20:35 -04:00
|
|
|
.pull-right
|
|
|
|
= link_to '#', class: "add-new-wiki btn btn-small btn-primary" do
|
2013-03-18 17:08:54 -04:00
|
|
|
%i.icon-plus
|
|
|
|
New Page
|
|
|
|
|
|
|
|
= render 'wikis/new'
|