gitlab-org--gitlab-foss/app/views/projects/wikis/_nav.html.haml
Dmitriy Zaporozhets 87415ab2a6
Add bottom margin to nav-tabs
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-02-15 13:41:48 +02:00

19 lines
626 B
Text

%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
- 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.icon-plus
New Page
= render 'projects/wikis/new'