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

24 lines
701 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
.nav-text
2016-11-15 04:17:44 -05:00
%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
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'