2014-09-02 18:07:02 +05:30
|
|
|
%ul.nav.nav-tabs
|
|
|
|
= nav_link(html_options: {class: params[:id] == 'home' ? 'active' : '' }) do
|
2015-04-26 12:48:37 +05:30
|
|
|
= link_to 'Home', namespace_project_wiki_path(@project.namespace, @project, :home)
|
2014-09-02 18:07:02 +05:30
|
|
|
|
|
|
|
= nav_link(path: 'wikis#pages') do
|
2015-04-26 12:48:37 +05:30
|
|
|
= link_to 'Pages', pages_namespace_project_wikis_path(@project.namespace, @project)
|
2014-09-02 18:07:02 +05:30
|
|
|
|
|
|
|
= nav_link(path: 'wikis#git_access') do
|
2015-04-26 12:48:37 +05:30
|
|
|
= link_to git_access_namespace_project_wikis_path(@project.namespace, @project) do
|
|
|
|
%i.fa.fa-download
|
2014-09-02 18:07:02 +05:30
|
|
|
Git Access
|
|
|
|
|
2015-09-11 14:41:01 +05:30
|
|
|
- if can?(current_user, :create_wiki, @project)
|
2014-09-02 18:07:02 +05:30
|
|
|
.pull-right
|
|
|
|
= link_to '#modal-new-wiki', class: "add-new-wiki btn btn-new", "data-toggle" => "modal" do
|
2015-04-26 12:48:37 +05:30
|
|
|
%i.fa.fa-plus
|
2014-09-02 18:07:02 +05:30
|
|
|
New Page
|
|
|
|
|
|
|
|
= render 'projects/wikis/new'
|