debian-mirror-gitlab/app/views/shared/wikis/pages.html.haml

33 lines
1.3 KiB
Text
Raw Normal View History

2020-06-23 00:09:42 +05:30
- add_to_breadcrumbs "Wiki", wiki_path(@wiki)
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
2019-12-04 20:38:33 +05:30
.wiki-page-header.top-area.flex-column.flex-lg-row
2017-08-17 22:00:37 +05:30
2019-12-04 20:38:33 +05:30
.nav-text.flex-fill
%h2.wiki-page-title
= s_("Wiki|Wiki Pages")
2017-08-17 22:00:37 +05:30
2019-12-04 20:38:33 +05:30
.nav-controls.pb-md-3.pb-lg-0
2020-06-23 00:09:42 +05:30
= link_to wiki_path(@wiki, action: :git_access), class: 'btn' do
2020-07-28 23:09:34 +05:30
= sprite_icon('download')
2019-12-04 20:38:33 +05:30
= _("Clone repository")
2017-08-17 22:00:37 +05:30
2019-12-04 20:38:33 +05:30
.dropdown.inline.wiki-sort-dropdown
.btn-group{ role: 'group' }
2019-07-07 11:18:12 +05:30
.btn-group{ role: 'group' }
2019-12-04 20:38:33 +05:30
%button.dropdown-toggle{ type: 'button', data: { toggle: 'dropdown', display: 'static' }, class: 'btn btn-default' }
= sort_title
2020-07-28 23:09:34 +05:30
= sprite_icon('chevron-down')
2019-12-04 20:38:33 +05:30
%ul.dropdown-menu.dropdown-menu-right.dropdown-menu-selectable.dropdown-menu-sort
%li
2020-06-23 00:09:42 +05:30
= sortable_item(s_("Wiki|Title"), wiki_path(@wiki, action: :pages, sort: Wiki::TITLE_ORDER), sort_title)
= sortable_item(s_("Wiki|Created date"), wiki_path(@wiki, action: :pages, sort: Wiki::CREATED_AT_ORDER), sort_title)
= wiki_sort_controls(@wiki, params[:sort], params[:direction])
2019-07-07 11:18:12 +05:30
2019-12-04 20:38:33 +05:30
%ul.wiki-pages-list.content-list
= render @wiki_entries, context: 'pages'
2017-08-17 22:00:37 +05:30
2019-12-04 20:38:33 +05:30
= paginate @wiki_pages, theme: 'gitlab'