2016-06-15 10:31:41 -04:00
|
|
|
- @no_container = true
|
2015-12-02 07:59:42 -05:00
|
|
|
- page_title "Pages", "Wiki"
|
2015-09-17 06:16:24 -04:00
|
|
|
|
2016-06-30 09:01:26 -04:00
|
|
|
%div{ class: container_class }
|
2016-11-15 04:17:44 -05:00
|
|
|
.wiki-page-header
|
2016-11-14 16:33:21 -05:00
|
|
|
|
|
|
|
.nav-text
|
2016-11-15 04:17:44 -05:00
|
|
|
%h2.wiki-page-title
|
2016-11-14 16:33:21 -05:00
|
|
|
Wiki Pages
|
|
|
|
|
2016-11-16 13:10:16 -05:00
|
|
|
.nav-controls
|
|
|
|
= link_to namespace_project_wikis_git_access_path(@project.namespace, @project), class: 'btn' do
|
|
|
|
= icon('cloud-download')
|
|
|
|
Clone repository
|
|
|
|
|
2016-06-15 10:31:41 -04:00
|
|
|
%ul.content-list
|
2016-12-15 23:12:21 -05:00
|
|
|
- @wiki_directories.each do |wiki_directory, wiki_pages|
|
2016-06-15 10:31:41 -04:00
|
|
|
%li
|
2016-12-15 23:12:21 -05:00
|
|
|
= wiki_directory
|
|
|
|
%ul
|
|
|
|
- wiki_pages.each do |wiki_page|
|
|
|
|
%li
|
|
|
|
= link_to wiki_page.title, namespace_project_wiki_path(@project.namespace, @project, wiki_page)
|
|
|
|
%small (#{wiki_page.format})
|
|
|
|
.pull-right
|
|
|
|
%small Last edited #{time_ago_with_tooltip(wiki_page.commit.authored_date)}
|
2016-06-15 10:31:41 -04:00
|
|
|
= paginate @wiki_pages, theme: 'gitlab'
|