add wiki page list to sidebar

This commit is contained in:
Mike Greiling 2016-11-15 02:19:08 -06:00
parent 8e23d7ad84
commit a151805572

View file

@ -12,10 +12,9 @@
.blocks-container
.block.block-first
%ul.wiki-pages
%li{ class: params[:id] == 'home' ? 'active' : '' }
= link_to 'Home', namespace_project_wiki_path(@project.namespace, @project, :home)
%li{ class: active_nav_link?(path: 'wikis#pages') ? 'active' : '' }
= link_to 'Pages', namespace_project_wikis_pages_path(@project.namespace, @project)
- @project_wiki.pages.each do |wiki_page|
%li{ class: params[:id] == wiki_page.slug ? 'active' : '' }
= link_to namespace_project_wiki_path(@project.namespace, @project, wiki_page) do
= wiki_page.title.capitalize
= render 'projects/wikis/new'