2023-06-20 00:43:36 +05:30
|
|
|
- wiki_path = wiki_page_path(@wiki, wiki_directory)
|
|
|
|
|
2023-04-23 21:23:45 +05:30
|
|
|
%li{ class: active_when(params[:id] == wiki_directory.slug), data: { qa_selector: 'wiki_directory_content' } }
|
2023-06-20 00:43:36 +05:30
|
|
|
.gl-relative.gl-display-flex.gl-align-items-center.js-wiki-list-toggle.wiki-list{ data: { testid: 'wiki-list' } }<
|
2023-05-27 22:25:52 +05:30
|
|
|
= sprite_icon('chevron-right', css_class: 'js-wiki-list-expand-button wiki-list-expand-button gl-mr-2 gl-cursor-pointer')
|
|
|
|
= sprite_icon('chevron-down', css_class: 'js-wiki-list-collapse-button wiki-list-collapse-button gl-mr-2 gl-cursor-pointer')
|
2023-06-20 00:43:36 +05:30
|
|
|
= render Pajamas::ButtonComponent.new(icon: 'plus', href: "#{wiki_path}/{new_page_title}", button_options: { class: 'wiki-list-create-child-button gl-bg-transparent! gl-hover-bg-gray-50! gl-focus-bg-gray-50! gl-absolute gl-top-half gl-translate-y-n50 gl-cursor-pointer gl-right-3' })
|
|
|
|
= link_to wiki_path, data: { qa_selector: 'wiki_dir_page_link', qa_page_name: wiki_directory.title } do
|
2023-05-27 22:25:52 +05:30
|
|
|
= wiki_directory.title
|
2017-08-17 22:00:37 +05:30
|
|
|
%ul
|
2023-04-23 21:23:45 +05:30
|
|
|
- wiki_directory.entries.each do |entry|
|
|
|
|
= render partial: entry.to_partial_path, object: entry, locals: { context: context }
|