2016-06-22 15:30:34 +05:30
|
|
|
- @no_container = true
|
2019-02-02 18:00:53 +05:30
|
|
|
- add_to_breadcrumbs "Wiki", project_wiki_path(@project, :home)
|
2018-03-17 18:26:18 +05:30
|
|
|
- breadcrumb_title s_("Wiki|Pages")
|
|
|
|
- page_title s_("Wiki|Pages"), _("Wiki")
|
2019-07-07 11:18:12 +05:30
|
|
|
- sort_title = wiki_sort_title(params[:sort])
|
2015-09-25 12:07:36 +05:30
|
|
|
|
2016-08-24 12:49:21 +05:30
|
|
|
%div{ class: container_class }
|
2019-10-12 21:52:04 +05:30
|
|
|
.wiki-page-header.top-area
|
2017-08-17 22:00:37 +05:30
|
|
|
|
2019-09-30 21:07:59 +05:30
|
|
|
.nav-text.flex-fill
|
2017-08-17 22:00:37 +05:30
|
|
|
%h2.wiki-page-title
|
2018-03-17 18:26:18 +05:30
|
|
|
= s_("Wiki|Wiki Pages")
|
2017-08-17 22:00:37 +05:30
|
|
|
|
|
|
|
.nav-controls
|
2017-09-10 17:25:29 +05:30
|
|
|
= link_to project_wikis_git_access_path(@project), class: 'btn' do
|
2017-08-17 22:00:37 +05:30
|
|
|
= icon('cloud-download')
|
2018-03-17 18:26:18 +05:30
|
|
|
= _("Clone repository")
|
2017-08-17 22:00:37 +05:30
|
|
|
|
2019-07-07 11:18:12 +05:30
|
|
|
.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])
|
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
%ul.wiki-pages-list.content-list
|
|
|
|
= render @wiki_entries, context: 'pages'
|
|
|
|
|
2016-06-22 15:30:34 +05:30
|
|
|
= paginate @wiki_pages, theme: 'gitlab'
|