2016-04-02 18:10:28 +05:30
|
|
|
.top-area
|
2016-01-19 16:12:03 +05:30
|
|
|
%ul.nav-links
|
2015-12-23 02:04:40 +05:30
|
|
|
= 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
|
2016-04-02 18:10:28 +05:30
|
|
|
|
|
|
|
.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
|
|
|
|
|
|
|
|
= render 'projects/wikis/new'
|