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

35 lines
1.4 KiB
Text
Raw Normal View History

2016-06-15 10:31:41 -04:00
- @no_container = true
- add_to_breadcrumbs "Wiki", project_wiki_path(@project, :home)
2017-09-27 13:13:29 -04:00
- breadcrumb_title s_("Wiki|Pages")
- page_title s_("Wiki|Pages"), _("Wiki")
- sort_title = wiki_sort_title(params[:sort])
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
2017-09-27 13:13:29 -04:00
= s_("Wiki|Wiki Pages")
.nav-controls
= link_to project_wikis_git_access_path(@project), class: 'btn' do
= icon('cloud-download')
2017-09-27 13:13:29 -04:00
= _("Clone repository")
.dropdown.inline.wiki-sort-dropdown
.btn-group{ role: 'group' }
.btn-group{ role: 'group' }
%button.dropdown-toggle{ type: 'button', data: { toggle: 'dropdown', display: 'static' }, class: 'btn btn-default' }
= sort_title
= icon('chevron-down')
%ul.dropdown-menu.dropdown-menu-right.dropdown-menu-selectable.dropdown-menu-sort
%li
= sortable_item(s_("Wiki|Title"), project_wikis_pages_path(@project, sort: ProjectWiki::TITLE_ORDER), sort_title)
= sortable_item(s_("Wiki|Created date"), project_wikis_pages_path(@project, sort: ProjectWiki::CREATED_AT_ORDER), sort_title)
= wiki_sort_controls(@project, params[:sort], params[:direction])
2016-12-19 00:13:26 -05:00
%ul.wiki-pages-list.content-list
= render @wiki_entries, context: 'pages'
2016-06-15 10:31:41 -04:00
= paginate @wiki_pages, theme: 'gitlab'