gitlab-org--gitlab-foss/app/views/projects/wikis/pages.html.haml

23 lines
675 B
Text
Raw Normal View History

2016-06-15 10:31:41 -04:00
- @no_container = true
2015-12-02 07:59:42 -05:00
- page_title "Pages", "Wiki"
2016-06-30 09:01:26 -04:00
%div{ class: container_class }
2016-11-15 04:17:44 -05:00
.wiki-page-header
%button.btn.btn-default.sidebar-toggle.js-sidebar-wiki-toggle{ role: "button", type: "button" }
= icon('angle-double-left')
.nav-text
2016-11-15 04:17:44 -05:00
%h2.wiki-page-title
Wiki Pages
2016-06-15 10:31:41 -04:00
%ul.content-list
- @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)}
= paginate @wiki_pages, theme: 'gitlab'
= render 'sidebar'