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

25 lines
1 KiB
Text
Raw Normal View History

2021-11-11 11:23:49 +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")
2021-01-03 14:25:43 +05:30
- add_page_specific_style 'page_bundles/wiki'
2022-05-07 20:08:51 +05:30
- wiki_sort_options = [{ text: s_("Wiki|Title"), value: 'title', href: wiki_path(@wiki, action: :pages, sort: Wiki::TITLE_ORDER)}, { text: s_("Wiki|Created date"), value: 'created_at', href: wiki_path(@wiki, action: :pages, sort: Wiki::CREATED_AT_ORDER) }]
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
2021-09-04 01:27:46 +05:30
%h3.page-title.gl-flex-grow-1
2021-03-08 18:12:59 +05:30
= 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
2021-01-03 14:25:43 +05:30
= link_to wiki_path(@wiki, action: :git_access), class: 'btn gl-button' 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' }
2022-05-07 20:08:51 +05:30
= gl_redirect_listbox_tag wiki_sort_options, params[:sort], data: { right: true }
2020-06-23 00:09:42 +05:30
= 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'