gitlabhq/app/views/wikis/_nav.html.haml

20 lines
568 B
Plaintext
Raw Normal View History

2013-03-15 13:20:03 +01:00
%ul.nav.nav-tabs
= nav_link(html_options: {class: params[:id] == 'home' ? 'active' : '' }) do
= link_to 'Home', project_wiki_path(@project, :home)
= nav_link(path: 'wikis#pages') do
= link_to 'Pages', pages_project_wikis_path(@project)
= 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 22:08:54 +01:00
- if can?(current_user, :write_wiki, @project)
%li.pull-right
= link_to '#', class: "add-new-wiki" do
%i.icon-plus
New Page
= render 'wikis/new'