summaryrefslogtreecommitdiff
path: root/app/views/projects/wikis/pages.html.haml
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2016-11-16 12:10:16 -0600
committerMike Greiling <mike@pixelcog.com>2016-11-30 15:22:43 -0600
commitf0d20b09dc6604d4ea11a39a7d7492ad10574094 (patch)
tree0befb294ef5d0e4f639ccae10c60fe0e36f7ec70 /app/views/projects/wikis/pages.html.haml
parentb2137632203cda91b79763c33ac80c51e88ed010 (diff)
downloadgitlab-ce-f0d20b09dc6604d4ea11a39a7d7492ad10574094.tar.gz
use wiki pages index for sidebar overflow and limit sidebar list to 15 pages
Diffstat (limited to 'app/views/projects/wikis/pages.html.haml')
-rw-r--r--app/views/projects/wikis/pages.html.haml9
1 files changed, 5 insertions, 4 deletions
diff --git a/app/views/projects/wikis/pages.html.haml b/app/views/projects/wikis/pages.html.haml
index d89f860d9a8..e1eaffc6884 100644
--- a/app/views/projects/wikis/pages.html.haml
+++ b/app/views/projects/wikis/pages.html.haml
@@ -3,13 +3,16 @@
%div{ class: container_class }
.wiki-page-header
- %button.btn.btn-default.sidebar-toggle.js-sidebar-wiki-toggle{ role: "button", type: "button" }
- = icon('angle-double-left')
.nav-text
%h2.wiki-page-title
Wiki Pages
+ .nav-controls
+ = link_to namespace_project_wikis_git_access_path(@project.namespace, @project), class: 'btn' do
+ = icon('cloud-download')
+ Clone repository
+
%ul.content-list
- @wiki_pages.each do |wiki_page|
%li
@@ -18,5 +21,3 @@
.pull-right
%small Last edited #{time_ago_with_tooltip(wiki_page.commit.authored_date)}
= paginate @wiki_pages, theme: 'gitlab'
-
-= render 'sidebar'