Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2016-11-16 21:10:16 +0300
committerMike Greiling <mike@pixelcog.com>2016-12-01 00:22:43 +0300
commitf0d20b09dc6604d4ea11a39a7d7492ad10574094 (patch)
tree0befb294ef5d0e4f639ccae10c60fe0e36f7ec70 /app/views/projects/wikis/_sidebar.html.haml
parentb2137632203cda91b79763c33ac80c51e88ed010 (diff)
use wiki pages index for sidebar overflow and limit sidebar list to 15 pages
Diffstat (limited to 'app/views/projects/wikis/_sidebar.html.haml')
-rw-r--r--app/views/projects/wikis/_sidebar.html.haml5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/views/projects/wikis/_sidebar.html.haml b/app/views/projects/wikis/_sidebar.html.haml
index 85604c69865..0e64d1c6e8a 100644
--- a/app/views/projects/wikis/_sidebar.html.haml
+++ b/app/views/projects/wikis/_sidebar.html.haml
@@ -12,9 +12,12 @@
.blocks-container
.block.block-first
%ul.wiki-pages
- - @project_wiki.pages.each do |wiki_page|
+ - @sidebar_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
+ .block
+ = link_to namespace_project_wiki_pages_path(@project.namespace, @project), class: 'btn btn-block' do
+ More Pages
= render 'projects/wikis/new'