2016-06-15 10:31:41 -04:00
|
|
|
- @no_container = true
|
2019-01-09 10:05:52 -05:00
|
|
|
- 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")
|
2019-04-04 12:28:56 -04:00
|
|
|
- sort_title = wiki_sort_title(params[:sort])
|
2015-09-17 06:16:24 -04:00
|
|
|
|
2016-06-30 09:01:26 -04:00
|
|
|
%div{ class: container_class }
|
2019-08-14 12:09:48 -04:00
|
|
|
.wiki-page-header.top-area
|
2016-11-14 16:33:21 -05:00
|
|
|
|
2019-06-14 13:22:25 -04:00
|
|
|
.nav-text.flex-fill
|
2016-11-15 04:17:44 -05:00
|
|
|
%h2.wiki-page-title
|
2017-09-27 13:13:29 -04:00
|
|
|
= s_("Wiki|Wiki Pages")
|
2016-11-14 16:33:21 -05:00
|
|
|
|
2016-11-16 13:10:16 -05:00
|
|
|
.nav-controls
|
2017-06-29 13:06:35 -04:00
|
|
|
= link_to project_wikis_git_access_path(@project), class: 'btn' do
|
2016-11-16 13:10:16 -05:00
|
|
|
= icon('cloud-download')
|
2017-09-27 13:13:29 -04:00
|
|
|
= _("Clone repository")
|
2016-11-16 13:10:16 -05:00
|
|
|
|
2019-04-04 12:28:56 -04:00
|
|
|
.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
|
2016-12-26 20:54:36 -05:00
|
|
|
= render @wiki_entries, context: 'pages'
|
2016-12-17 15:00:29 -05:00
|
|
|
|
2016-06-15 10:31:41 -04:00
|
|
|
= paginate @wiki_pages, theme: 'gitlab'
|