diff options
author | Mike Greiling <mike@pixelcog.com> | 2016-11-15 11:19:08 +0300 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2016-12-01 00:22:43 +0300 |
commit | a1518055723459cf042327e1f9a4cf5004a0d301 (patch) | |
tree | a6ab933df5805ac2c182a8f14f572b02d20026b4 /app/views | |
parent | 8e23d7ad84db730413b1df66117775b241dfe38c (diff) |
add wiki page list to sidebar
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/projects/wikis/_sidebar.html.haml | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/app/views/projects/wikis/_sidebar.html.haml b/app/views/projects/wikis/_sidebar.html.haml index 4e0fe46f8fc..85604c69865 100644 --- a/app/views/projects/wikis/_sidebar.html.haml +++ b/app/views/projects/wikis/_sidebar.html.haml @@ -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' |