Commit a1518055 authored by Mike Greiling's avatar Mike Greiling

add wiki page list to sidebar

parent 8e23d7ad
...@@ -12,10 +12,9 @@ ...@@ -12,10 +12,9 @@
.blocks-container .blocks-container
.block.block-first .block.block-first
%ul.wiki-pages %ul.wiki-pages
%li{ class: params[:id] == 'home' ? 'active' : '' } - @project_wiki.pages.each do |wiki_page|
= link_to 'Home', namespace_project_wiki_path(@project.namespace, @project, :home) %li{ class: params[:id] == wiki_page.slug ? 'active' : '' }
= link_to namespace_project_wiki_path(@project.namespace, @project, wiki_page) do
%li{ class: active_nav_link?(path: 'wikis#pages') ? 'active' : '' } = wiki_page.title.capitalize
= link_to 'Pages', namespace_project_wikis_pages_path(@project.namespace, @project)
= render 'projects/wikis/new' = render 'projects/wikis/new'
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment