76aad9b76e
Make the following changes to deal with new behavior in Rails 4.1.2: * Use nested resources to avoid slashes in arguments to path helpers.
19 lines
714 B
Text
19 lines
714 B
Text
%ul.nav.nav-tabs
|
|
= 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', pages_namespace_project_wikis_path(@project.namespace, @project)
|
|
|
|
= nav_link(path: 'wikis#git_access') do
|
|
= link_to git_access_namespace_project_wikis_path(@project.namespace, @project) do
|
|
%i.fa.fa-download
|
|
Git Access
|
|
|
|
- if can?(current_user, :write_wiki, @project)
|
|
.pull-right
|
|
= link_to '#modal-new-wiki', class: "add-new-wiki btn btn-new", "data-toggle" => "modal" do
|
|
%i.fa.fa-plus
|
|
New Page
|
|
|
|
= render 'projects/wikis/new'
|